Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Aug 3, 2024
1 parent 67b3a54 commit 6793505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RedisCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function get(string $key): mixed
}
}

public function set(string $key, mixed $value, int $ttl = null): void
public function set(string $key, mixed $value, ?int $ttl = null): void
{
if ($ttl !== null && $ttl < 0) {
throw new \Error('Invalid TTL: ' . $ttl);
Expand Down

0 comments on commit 6793505

Please sign in to comment.