From edcb45a33f4b5c5f33ccd64d9c39ddf001af7f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 19 Apr 2021 17:06:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Route/Node.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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()); }