@@ -691,8 +691,8 @@ function ($collection, $count) {
691691assertType ('Illuminate\Support\Collection<int, string> ' , $ collection ->make (['string ' ])->concat (['string ' ]));
692692assertType ('Illuminate\Support\Collection<int, int|string> ' , $ collection ->make ([1 ])->concat (['string ' ]));
693693
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 ());
696696
697697assertType ('1 ' , $ collection
698698 ->reduce (function ($ null , $ user ) {
@@ -997,8 +997,10 @@ function ($collection, $count) {
997997assertType ('Illuminate\Support\Collection<int, User> ' , $ collection ->forget (1 ));
998998assertType ('Illuminate\Support\Collection<int, User> ' , $ collection ->forget ([1 , 2 ]));
999999
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 ([
10021004 'string-key-1 ' => 'string-value-1 ' ,
10031005 'string-key-2 ' => 'string-value-2 ' ,
10041006])->pop (2 ));
@@ -1020,8 +1022,8 @@ function ($collection, $count) {
10201022 'string-key-1 ' => 'string-value-1 ' ,
10211023])->put ('string-key-2 ' , 'string-value-2 ' ));
10221024
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 ([
10251027 'string-key-1 ' => 'string-value-1 ' ,
10261028 'string-key-2 ' => 'string-value-2 ' ,
10271029])->shift (2 ));
0 commit comments