Fixed full match not being removed from args list.
This commit is contained in:
parent
a5cfba6b96
commit
add621716a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue