@@ -691,8 +691,8 @@ function ($collection, $count) {
691
691
assertType ('Illuminate\Support\Collection<int, string> ' , $ collection ->make (['string ' ])->concat (['string ' ]));
692
692
assertType ('Illuminate\Support\Collection<int, int|string> ' , $ collection ->make ([1 ])->concat (['string ' ]));
693
693
694
- assertType ('Illuminate\Support\Collection<int, int>|int ' , $ collection-> make ([1 ])->random (2 ));
695
- assertType ('Illuminate\Support\Collection<int, string>|string ' , $ collection-> make (['string ' ])->random ());
694
+ assertType ('Illuminate\Support\Collection<int, int> ' , $ collection:: make ([1 ])->random (2 ));
695
+ assertType ('string ' , $ collection:: make (['string ' ])->random ());
696
696
697
697
assertType ('1 ' , $ collection
698
698
->reduce (function ($ null , $ user ) {
@@ -997,8 +997,10 @@ function ($collection, $count) {
997
997
assertType ('Illuminate\Support\Collection<int, User> ' , $ collection ->forget (1 ));
998
998
assertType ('Illuminate\Support\Collection<int, User> ' , $ collection ->forget ([1 , 2 ]));
999
999
1000
- assertType ('Illuminate\Support\Collection<int, User>|User|null ' , $ collection ->pop (1 ));
1001
- assertType ('Illuminate\Support\Collection<int, string>|string|null ' , $ collection ::make ([
1000
+ assertType ('User|null ' , $ collection ->pop ());
1001
+ assertType ('Illuminate\Support\Collection<int, User> ' , $ collection ->pop (2 ));
1002
+
1003
+ assertType ('Illuminate\Support\Collection<int, string> ' , $ collection ::make ([
1002
1004
'string-key-1 ' => 'string-value-1 ' ,
1003
1005
'string-key-2 ' => 'string-value-2 ' ,
1004
1006
])->pop (2 ));
@@ -1020,8 +1022,8 @@ function ($collection, $count) {
1020
1022
'string-key-1 ' => 'string-value-1 ' ,
1021
1023
])->put ('string-key-2 ' , 'string-value-2 ' ));
1022
1024
1023
- assertType ('Illuminate\Support\Collection<int, User>|User| null ' , $ collection ->shift (1 ));
1024
- assertType ('Illuminate\Support\Collection<int, string>|string|null ' , $ collection ::make ([
1025
+ assertType ('User| null ' , $ collection ->shift ());
1026
+ assertType ('Illuminate\Support\Collection<int, string> ' , $ collection ::make ([
1025
1027
'string-key-1 ' => 'string-value-1 ' ,
1026
1028
'string-key-2 ' => 'string-value-2 ' ,
1027
1029
])->shift (2 ));
0 commit comments