Skip to content

Commit e9bf20e

Browse files
authored
Merge pull request #20 from calebdw/fix_tests
fix: falsy subtraction type in collection filter
2 parents 68401d9 + c1ab4af commit e9bf20e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"illuminate/pipeline": "^9.52.16 || ^10.28.0 || ^11.16.0",
3131
"illuminate/support": "^9.52.16 || ^10.28.0 || ^11.16.0",
3232
"phpmyadmin/sql-parser": "^5.9.0",
33-
"phpstan/phpstan": "^1.12.2"
33+
"phpstan/phpstan": "^1.12.5"
3434
},
3535
"require-dev": {
3636
"doctrine/coding-standard": "^12.0",

tests/Type/data/collection-filter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function dummyFilter($value)
2424
/** @param EloquentCollection<int, User> $users */
2525
function test(User $user, SupportCollection $users): void
2626
{
27-
assertType("Illuminate\Support\Collection<(int|string), mixed~0|0.0|''|'0'|array{}|false|null>", collect()->filter());
27+
assertType("Illuminate\Support\Collection<(int|string), mixed~(0|0.0|''|'0'|array{}|false|null)>", collect()->filter());
2828

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

0 commit comments

Comments
 (0)