Skip to content

Commit

Permalink
Use bool|mixed for different versions
Browse files Browse the repository at this point in the history
  • Loading branch information
2e3s committed Jul 15, 2023
1 parent fce3f0e commit f43bafe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/acceptance/Collections.feature
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ Feature: Collections
When I run Psalm
Then I see these errors
| Type | Message |
| InvalidScalarArgument | /Argument 1 of Doctrine\\Common\\Collections\\Collection::map expects Closure\(string=\):bool, but (impure-)?Closure\(int\):bool provided\|Type (int\|string) should be a subtype of (int\|string)/ |
| InvalidScalarArgument | /Argument 1 of Doctrine\\Common\\Collections\\Collection::map expects Closure\(string=\):(bool\|mixed), but (impure-)?Closure\(int\):bool provided\|Type (int\|string) should be a subtype of (int\|string)/ |
And I see no other errors

@Collection::map
Expand Down

0 comments on commit f43bafe

Please sign in to comment.