@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | $config = self::validateConfig($config); |
100 | 100 | $driver = self::standardizeDriverName($driver); |
101 | - $instanceId = $instanceId ?: md5($driver . \serialize(\array_filter($config->toArray(), static fn ($val) => !\is_callable($val)))); |
|
101 | + $instanceId = $instanceId ?: md5($driver . \serialize(\array_filter($config->toArray(), static fn($val) => !\is_callable($val)))); |
|
102 | 102 | |
103 | 103 | if (!isset(self::$instances[$instanceId])) { |
104 | 104 | $driverClass = self::validateDriverClass(self::getDriverClass($driver)); |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | $found = false; |
223 | 223 | self::$instances = \array_filter( |
224 | 224 | \array_map( |
225 | - static function (ExtendedCacheItemPoolInterface $cachePool) use ($cachePoolInstance, &$found) { |
|
225 | + static function(ExtendedCacheItemPoolInterface $cachePool) use ($cachePoolInstance, &$found) { |
|
226 | 226 | if (\spl_object_hash($cachePool) === \spl_object_hash($cachePoolInstance)) { |
227 | 227 | $found = true; |
228 | 228 | return null; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | protected ConfigurationOptionInterface $config; |
42 | 42 | |
43 | - protected object|array|null $instance; |
|
43 | + protected object | array | null $instance; |
|
44 | 44 | |
45 | 45 | protected string $driverName; |
46 | 46 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | } |
157 | 157 | |
158 | 158 | if ($stringifyDate) { |
159 | - $wrap = \array_map(static function ($value) { |
|
159 | + $wrap = \array_map(static function($value) { |
|
160 | 160 | if ($value instanceof DateTimeInterface) { |
161 | 161 | return $value->format(DateTimeInterface::W3C); |
162 | 162 | } |