Skip to content

Commit

Permalink
Revert "Narrow type"
Browse files Browse the repository at this point in the history
This reverts commit bd384b8.
  • Loading branch information
sebastianbergmann committed Aug 4, 2023
1 parent c87ae28 commit 04ba180
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions tests/static-analysis/TestUsingCallbacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,11 @@ public function testWillSayHelloAndCheckCallbackInput(): void
$mock
->expects(self::once())
->method('hey')
->with(
self::callback(
/** @psalm-param non-empty-string $input */
static function (string $input): bool {
self::assertStringContainsString('Joe', $input);

return true;
}
)
)
->with(self::callback(static function (string $input): bool {
self::assertStringContainsString('Joe', $input);

return true;
}))
->willReturn('Hey Joe!');

self::assertSame('Hey Joe!', $mock->hey('Joe'));
Expand Down

0 comments on commit 04ba180

Please sign in to comment.