|
@@ -165,7 +165,7 @@ discard block |
|
|
block discarded – undo |
|
165
|
165
|
$fallback = $config->getFallback(); |
|
166
|
166
|
$config->setFallback(''); |
|
167
|
167
|
\trigger_error(\sprintf('The "%s" driver is unavailable at the moment, the fallback driver "%s" has been used instead.', $driver, |
|
168
|
|
- $fallback), \E_USER_WARNING); |
|
|
168
|
+ $fallback), \E_USER_WARNING); |
|
169
|
169
|
return self::getInstance($fallback, $config->getFallbackConfig()); |
|
170
|
170
|
} catch (PhpfastcacheInvalidArgumentException $e) { |
|
171
|
171
|
throw new PhpfastcacheInvalidConfigurationException('Invalid fallback driver configuration', 0, $e); |
|
@@ -283,8 +283,8 @@ discard block |
|
|
block discarded – undo |
|
283
|
283
|
public static function clearInstance(ExtendedCacheItemPoolInterface $cachePoolInstance): bool |
|
284
|
284
|
{ |
|
285
|
285
|
$found = false; |
|
286
|
|
- self::$instances = \array_filter(\array_map(function (ExtendedCacheItemPoolInterface $cachePool) use ($cachePoolInstance, &$found){ |
|
287
|
|
- if(\spl_object_hash($cachePool) === \spl_object_hash($cachePoolInstance)){ |
|
|
286
|
+ self::$instances = \array_filter(\array_map(function(ExtendedCacheItemPoolInterface $cachePool) use ($cachePoolInstance, &$found){ |
|
|
287
|
+ if (\spl_object_hash($cachePool) === \spl_object_hash($cachePoolInstance)) { |
|
288
|
288
|
$found = true; |
|
289
|
289
|
return null; |
|
290
|
290
|
} |
Please login to merge, or discard this patch.