diff --git a/src/Console/Server.php b/src/Console/Server.php index e9c0386..f4bce01 100644 --- a/src/Console/Server.php +++ b/src/Console/Server.php @@ -115,7 +115,7 @@ private function requestHandler(Request $request): \Generator break; case Dispatcher::FOUND: $handler = $routeInfo[1]; - $vars = $routeInfo[2]; + $vars = array_values($routeInfo[2]); array_unshift($vars, $request); /** @var Response $response */ $response = yield \call_user_func_array($handler, $vars);