Skip to content

Commit

Permalink
make clock argument of InMemoryCache constructor explicitly nullable (#4
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lubiana authored Aug 21, 2024
1 parent 7ea551d commit 9240214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InMemoryCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9240214

Please sign in to comment.