From 04ba180a7963378f9acfc00a5b057c3f9f0211b5 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Fri, 4 Aug 2023 08:40:34 +0200 Subject: [PATCH] Revert "Narrow type" This reverts commit bd384b824341de78bad2424181a695f0ebff6326. --- tests/static-analysis/TestUsingCallbacks.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tests/static-analysis/TestUsingCallbacks.php b/tests/static-analysis/TestUsingCallbacks.php index 0273d79eb80..d72f685cad2 100644 --- a/tests/static-analysis/TestUsingCallbacks.php +++ b/tests/static-analysis/TestUsingCallbacks.php @@ -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'));