@@ -61,10 +61,10 @@ function test(
61
61
assertType ('Illuminate\Support\Collection<App\User, int> ' , $ collection ->flip ());
62
62
assertType ('Illuminate\Support\Collection<int, string> ' , $ items ->flip ());
63
63
64
- assertType ('Illuminate\Database\Eloquent\Collection<(int|string), Illuminate\Database\Eloquent\Collection<( int|string) , App\User>> ' , $ collection ->groupBy ('id ' ));
65
- assertType ('Illuminate\Support\Collection<(int|string), Illuminate\Support\Collection<( int|string) , int>> ' , $ items ->groupBy ('id ' ));
64
+ assertType ('Illuminate\Database\Eloquent\Collection<(int|string), Illuminate\Database\Eloquent\Collection<int, App\User>> ' , $ collection ->groupBy ('id ' ));
65
+ assertType ('Illuminate\Support\Collection<(int|string), Illuminate\Support\Collection<int, int>> ' , $ items ->groupBy ('id ' ));
66
66
67
- assertType ('Illuminate\Database\Eloquent\Collection<(int| string) , App\User> ' , $ collection ->keyBy (fn (User $ user , int $ key ): string => $ user ->email ));
67
+ assertType ('Illuminate\Database\Eloquent\Collection<string, App\User> ' , $ collection ->keyBy (fn (User $ user , int $ key ): string => $ user ->email ));
68
68
69
69
assertType ('Illuminate\Support\Collection<int, int> ' , $ collection ->keys ());
70
70
assertType ('Illuminate\Support\Collection<int, string> ' , $ items ->keys ());
@@ -227,7 +227,7 @@ function test(
227
227
LazyCollection::times (10 , fn ($ int ) => 5 )->flatMap (fn (int $ i ) => [$ i * 2 ]),
228
228
);
229
229
230
- assertType ('Illuminate\Support\Collection<(int|string), Illuminate\Support\Collection<( int|string) , array{id: int, type: string}>> ' , collect ([
230
+ assertType ('Illuminate\Support\Collection<(int|string), Illuminate\Support\Collection<int, array{id: int, type: string}>> ' , collect ([
231
231
[
232
232
'id ' => 1 ,
233
233
'type ' => 'A ' ,
0 commit comments