@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * @throws InvalidArgumentException |
34 | 34 | */ |
35 | - public function get(string|\Stringable $cacheKey, callable $callback, DateInterval|int|null $expiresAfter = null): mixed |
|
35 | + public function get(string | \Stringable $cacheKey, callable $callback, DateInterval | int | null $expiresAfter = null): mixed |
|
36 | 36 | { |
37 | 37 | $cacheItem = $this->cacheInstance->getItem((string) $cacheKey); |
38 | 38 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * @throws InvalidArgumentException |
56 | 56 | */ |
57 | - public function __invoke(string $cacheKey, callable $callback, DateInterval|int|null $expiresAfter = null): mixed |
|
57 | + public function __invoke(string $cacheKey, callable $callback, DateInterval | int | null $expiresAfter = null): mixed |
|
58 | 58 | { |
59 | 59 | return $this->get($cacheKey, $callback, $expiresAfter); |
60 | 60 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @throws PhpfastcacheDriverException |
50 | 50 | * @throws PhpfastcacheDriverNotFoundException |
51 | 51 | */ |
52 | - public function __construct(string|ExtendedCacheItemPoolInterface $driver, ?ConfigurationOptionInterface $config = null) |
|
52 | + public function __construct(string | ExtendedCacheItemPoolInterface $driver, ?ConfigurationOptionInterface $config = null) |
|
53 | 53 | { |
54 | 54 | if ($driver instanceof ExtendedCacheItemPoolInterface) { |
55 | 55 | if ($config !== null) { |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * @return bool |
89 | 89 | * @throws PhpfastcacheSimpleCacheException |
90 | 90 | */ |
91 | - public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool |
|
91 | + public function set(string $key, mixed $value, null | int | \DateInterval $ttl = null): bool |
|
92 | 92 | { |
93 | 93 | try { |
94 | 94 | $cacheItem = $this->internalCacheInstance |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * @return bool |
161 | 161 | * @throws PhpfastcacheSimpleCacheException |
162 | 162 | */ |
163 | - public function setMultiple(iterable $values, null|int|\DateInterval $ttl = null): bool |
|
163 | + public function setMultiple(iterable $values, null | int | \DateInterval $ttl = null): bool |
|
164 | 164 | { |
165 | 165 | try { |
166 | 166 | foreach ($values as $key => $value) { |