From add621716a1d1c834be675b94935adfd7c995526 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 28 Mar 2024 20:33:41 +0000 Subject: [PATCH] Fixed full match not being removed from args list. --- VERSION | 2 +- src/Http/Routing/HttpRouter.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index b6aa7b2..e003a14 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2403.282022 +0.2403.282033 diff --git a/src/Http/Routing/HttpRouter.php b/src/Http/Routing/HttpRouter.php index c6429f5..30baf1f 100644 --- a/src/Http/Routing/HttpRouter.php +++ b/src/Http/Routing/HttpRouter.php @@ -93,6 +93,7 @@ class HttpRouter implements IRouter { foreach($this->dynamicRoutes as $rPattern => $rMethods) if(preg_match($rPattern, $path, $args) === 1) { $methods = $rMethods; + array_shift($args); break; } }