From 8a5059c7ecf148ada64a454a416f7bf362a80006 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 28 Mar 2024 20:16:18 +0000 Subject: [PATCH] Fixed is_array being used instead of array_key_exists. --- VERSION | 2 +- src/Http/Routing/HttpRouter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 8789854..9631612 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2403.282010 +0.2403.282016 diff --git a/src/Http/Routing/HttpRouter.php b/src/Http/Routing/HttpRouter.php index 40ccb69..c6429f5 100644 --- a/src/Http/Routing/HttpRouter.php +++ b/src/Http/Routing/HttpRouter.php @@ -52,7 +52,7 @@ class HttpRouter implements IRouter { $prepared = self::preparePath($path, false); if($prepared === false) { - if(is_array($this->staticRoutes[$path])) + if(array_key_exists($path, $this->staticRoutes)) $this->staticRoutes[$path][$method] = $handler; else $this->staticRoutes[$path] = [$method => $handler];