We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67b3a54 commit 6793505Copy full SHA for 6793505
src/RedisCache.php
@@ -39,7 +39,7 @@ public function get(string $key): mixed
39
}
40
41
42
- public function set(string $key, mixed $value, int $ttl = null): void
+ public function set(string $key, mixed $value, ?int $ttl = null): void
43
{
44
if ($ttl !== null && $ttl < 0) {
45
throw new \Error('Invalid TTL: ' . $ttl);
0 commit comments