Skip to content

Commit

Permalink
PHP 8 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mmenozzi authored Oct 19, 2022
1 parent 6cb5c67 commit 1d78cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1d78cda

Please sign in to comment.