There was an error while loading. Please reload this page.
1 parent c729dc3 commit efda127Copy full SHA for efda127
CacheTrait.php
@@ -46,7 +46,7 @@ private function doGet(CacheItemPoolInterface $pool, string $key, callable $call
46
47
$item = $pool->getItem($key);
48
$recompute = !$item->isHit() || INF === $beta;
49
- $metadata = $item instanceof ItemInterface ? $item->getMetadata() : array();
+ $metadata = $item instanceof ItemInterface ? $item->getMetadata() : [];
50
51
if (!$recompute && $metadata) {
52
$expiry = $metadata[ItemInterface::METADATA_EXPIRY] ?? false;
0 commit comments