diff --git a/system/src/Grav/Framework/Cache/Adapter/MemoryCache.php b/system/src/Grav/Framework/Cache/Adapter/MemoryCache.php index ea502dc4c2..2d0fe40bd9 100644 --- a/system/src/Grav/Framework/Cache/Adapter/MemoryCache.php +++ b/system/src/Grav/Framework/Cache/Adapter/MemoryCache.php @@ -27,7 +27,11 @@ class MemoryCache extends AbstractCache public function doGet($key, $miss) { - return $this->cache[$key] ?? $miss; + if (!array_key_exists($key, $this->cache)) { + return $miss; + } + + return $this->cache[$key]; } public function doSet($key, $value, $ttl)