@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * @throws \Psr\SimpleCache\InvalidArgumentException |
| 83 | 83 | * MUST be thrown if the $key string is not a legal value. |
| 84 | 84 | */ |
| 85 | - public function set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool |
|
| 85 | + public function set(string $key, mixed $value, DateInterval | int | null $ttl = null): bool |
|
| 86 | 86 | { |
| 87 | 87 | return $this->memcached->set($key, $value, $this->handleTtl($ttl)); |
| 88 | 88 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * |
| 97 | 97 | * @return int Ttl in seconds. |
| 98 | 98 | */ |
| 99 | - private function handleTtl(DateInterval|int|null $ttl): int |
|
| 99 | + private function handleTtl(DateInterval | int | null $ttl): int |
|
| 100 | 100 | { |
| 101 | 101 | if ($ttl == null) { |
| 102 | 102 | return 0; |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * @throws \Psr\SimpleCache\InvalidArgumentException |
| 115 | 115 | * MUST be thrown if the $key string is not a legal value. |
| 116 | 116 | */ |
| 117 | - public function set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool |
|
| 117 | + public function set(string $key, mixed $value, DateInterval | int | null $ttl = null): bool |
|
| 118 | 118 | { |
| 119 | 119 | $vTtl = $this->handleTtl($ttl); |
| 120 | 120 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | * |
| 146 | 146 | * @return int Ttl in seconds. |
| 147 | 147 | */ |
| 148 | - private function handleTtl(DateInterval|int|null $ttl): int |
|
| 148 | + private function handleTtl(DateInterval | int | null $ttl): int |
|
| 149 | 149 | { |
| 150 | 150 | if ($ttl == null) { |
| 151 | 151 | return 0; |