Skip to content

Commit

Permalink
Allow errors with pure callables
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Sep 18, 2020
1 parent fca9b22 commit b5c88b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/acceptance/Prophecy.feature
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ Feature: Prophecy
"""
When I run Psalm
Then I see these errors
| Type | Message |
| InvalidScalarArgument | Argument 1 of Prophecy\Argument::that expects callable(mixed...):bool, Closure():string(hello) provided |
| Type | Message |
| InvalidScalarArgument | /Argument 1 of Prophecy\\Argument::that expects callable\(mixed...\):bool, (pure-)?Closure\(\):string\(hello\) provided/ |
And I see no other errors

Scenario: prophesize() provided by ProphecyTrait is generic
Expand Down

0 comments on commit b5c88b5

Please sign in to comment.