From 1c09cc27ee55b125a552dde40d58c67816128bb3 Mon Sep 17 00:00:00 2001 From: Valentin Udaltsov Date: Tue, 3 Sep 2024 02:06:26 +0300 Subject: [PATCH] Fix MapTestCase --- tests/MapTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/MapTestCase.php b/tests/MapTestCase.php index a6f5868..ee069e6 100644 --- a/tests/MapTestCase.php +++ b/tests/MapTestCase.php @@ -227,7 +227,7 @@ final public function testGetOrCallsDefaultIfKeyDoesNotExist(): void $this->expectExceptionObject($exception); - $map->getOr(1, static fn(): never => throw $exception); + $map->getOr(1, static function () use ($exception): void { throw $exception; }); } final public function testOffsetGetThrowsIfKeyDoesNotExist(): void