Skip to content

Commit

Permalink
Merge pull request #20 from calebdw/fix_tests
Browse files Browse the repository at this point in the history
fix: falsy subtraction type in collection filter
  • Loading branch information
calebdw authored Sep 27, 2024
2 parents 68401d9 + c1ab4af commit e9bf20e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"illuminate/pipeline": "^9.52.16 || ^10.28.0 || ^11.16.0",
"illuminate/support": "^9.52.16 || ^10.28.0 || ^11.16.0",
"phpmyadmin/sql-parser": "^5.9.0",
"phpstan/phpstan": "^1.12.2"
"phpstan/phpstan": "^1.12.5"
},
"require-dev": {
"doctrine/coding-standard": "^12.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/Type/data/collection-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function dummyFilter($value)
/** @param EloquentCollection<int, User> $users */
function test(User $user, SupportCollection $users): void
{
assertType("Illuminate\Support\Collection<(int|string), mixed~0|0.0|''|'0'|array{}|false|null>", collect()->filter());
assertType("Illuminate\Support\Collection<(int|string), mixed~(0|0.0|''|'0'|array{}|false|null)>", collect()->filter());

assertType('Illuminate\Support\Collection<int, non-falsy-string>', collect(['foo', null, '', 'bar', null])->filter());

Expand Down

0 comments on commit e9bf20e

Please sign in to comment.