From 22ffe6b74d1cb6e68fec65896c7305a7b5d3ff03 Mon Sep 17 00:00:00 2001 From: Dimitri BOUTEILLE Date: Wed, 6 Aug 2025 18:49:43 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9E=20Fix=20HookLoader::getHooks()?= =?UTF-8?q?=20return?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/HookLoader.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { } } From 7191f24c874bda5c7bde17ef5c308beaee5975ef Mon Sep 17 00:00:00 2001 From: Dimitri BOUTEILLE Date: Wed, 6 Aug 2025 18:57:37 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=8E=20Add=20release.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/release.yml 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