Fixed full match not being removed from args list.

This commit is contained in:
flash 2024-03-28 20:33:41 +00:00
parent a5cfba6b96
commit add621716a
2 changed files with 2 additions and 1 deletions

View file

@ -1 +1 @@
0.2403.282022
0.2403.282033

View file

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