Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored and nunomaduro committed Aug 25, 2021
1 parent a35ddcb commit e249f05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions types/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ class User extends Authenticatable

assertType('Illuminate\Support\Collection<int, User>', $collection->put(1, new User));
assertType('Illuminate\Support\Collection<string, string>', $collection::make([
'string-key-1' => 'string-value-1'
'string-key-1' => 'string-value-1',
])->put('string-key-2', 'string-value-2'));

assertType('Illuminate\Support\Collection<int, User>|User|null', $collection->shift(1));
Expand Down Expand Up @@ -814,7 +814,9 @@ class User extends Authenticatable
*
* @extends \Illuminate\Support\Collection<TKey, TValue>
*/
class CustomCollection extends Collection {}
class CustomCollection extends Collection
{
}

// assertType('CustomCollection<int, User>', CustomCollection::make([new User]));
assertType('Illuminate\Support\Collection<int, User>', CustomCollection::make([new User])->toBase());
Expand Down

0 comments on commit e249f05

Please sign in to comment.