Fixed is_array being used instead of array_key_exists.

This commit is contained in:
flash 2024-03-28 20:16:18 +00:00
parent 5cda6fbe25
commit 8a5059c7ec
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
0.2403.282010
0.2403.282016

View file

@ -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];