From a8bef3dcf12fad5e57428e14c540cd9759d20ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 20 Apr 2021 11:48:56 +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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index cb76c185..80427454 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -116,7 +116,7 @@ class Node extends HttpService } if (!empty($this->handler)) { $this->callback = Reduce::reduce(function () { - return call_user_func($this->handler, ...func_get_args()); + return call_user_func($this->handler, func_get_args()); }, $this->annotation()); } return $this; @@ -129,7 +129,7 @@ class Node extends HttpService public function createDispatch(): Closure { return function () { - return call_user_func($this->handler, ...func_get_args()); + return call_user_func($this->handler, func_get_args()); }; } @@ -532,9 +532,9 @@ class Node extends HttpService { try { if ($this->handler instanceof Closure) { - return call_user_func($this->handler, ...func_get_args()); + return call_user_func($this->handler, func_get_args()); } - return $this->runWith($this->callback, ...func_get_args()); + return $this->runWith($this->callback, func_get_args()); return $this->runFilter(...func_get_args()); } catch (Throwable $throwable) {