From 0506a151dea40b68236c8daf968c00cc9a44525e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 19 Apr 2021 16:31:51 +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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 6c21b043..c5264728 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -561,8 +561,7 @@ class Node extends HttpService private function runWith(): mixed { $requestParams = func_get_args(); - var_dump($requestParams); - if (func_num_args() > 0) { + if (count($requestParams) > 0) { return call_user_func($this->callback, ...$requestParams); } else { return call_user_func($this->callback, \request());