diff --git a/src/InMemoryCache.php b/src/InMemoryCache.php index 0d3a858..2c4f105 100644 --- a/src/InMemoryCache.php +++ b/src/InMemoryCache.php @@ -17,7 +17,7 @@ final class InMemoryCache implements CacheItemPoolInterface private array $deferredItems; public function __construct( - ClockInterface $clock = null, + ?ClockInterface $clock = null, ) { $this->clock = $clock ?? new class implements ClockInterface { public function now(): DateTimeImmutable