diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..555c503 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,14 @@ +changelog: + categories: + - title: Breaking Changes 🛠 + labels: + - Breaking change + - title: New Features 💎 + labels: + - Feature + - title: Fixes ⛑️ + labels: + - Fix + - title: Other Changes 🖇️ + labels: + - "*" \ No newline at end of file diff --git a/src/HookLoader.php b/src/HookLoader.php index b85f4a6..de518e8 100644 --- a/src/HookLoader.php +++ b/src/HookLoader.php @@ -41,7 +41,10 @@ protected function getHooks(): array $cacheRoutes = $this->cache->getItem(self::CACHE_KEY); if ($cacheRoutes->isHit()) { try { - return unserialize($cacheRoutes->get()); + $result = unserialize($cacheRoutes->get()); + if (is_array($result)) { + return $result; + } } catch (\Exception) { } }