Skip to content

Commit

Permalink
Fix MapTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Sep 2, 2024
1 parent 183fc47 commit 1c09cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/MapTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c09cc2

Please sign in to comment.