We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f967a9e + 22ffe6b commit cdb3616Copy full SHA for cdb3616
1 file changed
src/HookLoader.php
@@ -41,7 +41,10 @@ protected function getHooks(): array
41
$cacheRoutes = $this->cache->getItem(self::CACHE_KEY);
42
if ($cacheRoutes->isHit()) {
43
try {
44
- return unserialize($cacheRoutes->get());
+ $result = unserialize($cacheRoutes->get());
45
+ if (is_array($result)) {
46
+ return $result;
47
+ }
48
} catch (\Exception) {
49
}
50
0 commit comments