File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -1202,16 +1202,10 @@ protected function compileWhereDate(array $where): array
1202
1202
],
1203
1203
],
1204
1204
'ne ' => [
1205
- '$or ' => [
1206
- [
1207
- $ where ['column ' ] => [
1208
- '$lt ' => $ startOfDay ,
1209
- ],
1210
- ],
1211
- [
1212
- $ where ['column ' ] => [
1213
- '$gt ' => $ endOfDay ,
1214
- ],
1205
+ $ where ['column ' ] => [
1206
+ '$not ' => [
1207
+ '$gte ' => $ startOfDay ,
1208
+ '$lte ' => $ endOfDay ,
1215
1209
],
1216
1210
],
1217
1211
],
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ public function testWhereDate(): void
220
220
$ this ->assertCount (2 , $ birthdayCount );
221
221
222
222
$ birthdayCount = Birthday::whereDate ('birthday ' , '<> ' , '2021-05-11 ' )->get ();
223
- $ this ->assertCount (5 , $ birthdayCount );
223
+ $ this ->assertCount (6 , $ birthdayCount );
224
224
}
225
225
226
226
public function testWhereDay (): void
You can’t perform that action at this time.
0 commit comments