diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index dafa2da7..0e5146e2 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -561,12 +561,7 @@ class Node extends HttpService */ private function runWith(): mixed { - $requestParams = func_get_args(); - if (count($requestParams) > 0) { - return call_user_func($this->callback, ...$requestParams); - } else { - return call_user_func($this->callback, \request()); - } + return call_user_func($this->callback, ...func_get_args()); }