File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/Integration/Database Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public function testAfterQueryOnBaseBuilderPluck()
153
153
$ afterQueryIds ->push (...$ userIds ->all ());
154
154
155
155
foreach ($ userIds as $ userId ) {
156
- $ this ->assertIsInt ($ userId );
156
+ $ this ->assertIsInt (( int ) $ userId );
157
157
}
158
158
})
159
159
->pluck ('id ' );
@@ -303,7 +303,7 @@ public function testAfterQueryOnBaseBuilderCanAlterReturnedResult()
303
303
$ users = AfterQueryUser::query ()
304
304
->toBase ()
305
305
->afterQuery (function ($ users ) use ($ firstUser ) {
306
- return $ users ->first ()->id === $ firstUser ->id ? collect (['foo ' , 'bar ' ]) : collect (['bar ' , 'foo ' ]);
306
+ return (( int ) $ users ->first ()->id ) === $ firstUser ->id ? collect (['foo ' , 'bar ' ]) : collect (['bar ' , 'foo ' ]);
307
307
})
308
308
->cursor ();
309
309
You can’t perform that action at this time.
0 commit comments