@@ -122,7 +122,7 @@ |
||
122 | 122 | /** |
123 | 123 | * {@inheritdoc} |
124 | 124 | */ |
125 | - public function set(string $key, mixed $value, int|DateInterval|null $ttl = null): bool |
|
125 | + public function set(string $key, mixed $value, int | DateInterval | null $ttl = null): bool |
|
126 | 126 | { |
127 | 127 | $this->validateKey($key); |
128 | 128 |
@@ -74,7 +74,7 @@ |
||
74 | 74 | return false; |
75 | 75 | } |
76 | 76 | |
77 | - public function set(string $key, mixed $value, int|DateInterval|null $ttl = null): bool |
|
77 | + public function set(string $key, mixed $value, int | DateInterval | null $ttl = null): bool |
|
78 | 78 | { |
79 | 79 | return false; |
80 | 80 | } |
@@ -81,7 +81,7 @@ |
||
81 | 81 | * @throws CacheException |
82 | 82 | * MUST be thrown if the $key string is not a legal value. |
83 | 83 | */ |
84 | - public function set(string $key, mixed $value, int|DateInterval|null $ttl = null): bool; |
|
84 | + public function set(string $key, mixed $value, int | DateInterval | null $ttl = null): bool; |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | * Delete an item from the cache by its unique key. |
@@ -87,7 +87,7 @@ |
||
87 | 87 | /** |
88 | 88 | * {@inheritdoc} |
89 | 89 | */ |
90 | - public function set(string $key, mixed $value, int|DateInterval|null $ttl = null): bool |
|
90 | + public function set(string $key, mixed $value, int | DateInterval | null $ttl = null): bool |
|
91 | 91 | { |
92 | 92 | if ($ttl === null) { |
93 | 93 | $ttl = $this->config->get('ttl'); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * |
81 | 81 | * @throws CacheException MUST be thrown if the $key string is not a legal value. |
82 | 82 | */ |
83 | - public function set(string $key, mixed $value, int|DateInterval|null $ttl = null): bool; |
|
83 | + public function set(string $key, mixed $value, int | DateInterval | null $ttl = null): bool; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Delete an item from the cache by its unique key. |
@@ -87,7 +87,7 @@ |
||
87 | 87 | /** |
88 | 88 | * {@inheritdoc} |
89 | 89 | */ |
90 | - public function set(string $key, mixed $value, int|DateInterval|null $ttl = null): bool |
|
90 | + public function set(string $key, mixed $value, int | DateInterval | null $ttl = null): bool |
|
91 | 91 | { |
92 | 92 | if ($ttl === null) { |
93 | 93 | $ttl = $this->config->get('ttl'); |