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