From 993beab42b8276352d6cfdc4739a1b0469a29ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 20 Apr 2021 12:08:47 +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 | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 21a11f37..424eb707 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -554,10 +554,10 @@ class Node extends HttpService /** - * @return Validator + * @return Validator|bool * @throws Exception */ - private function getValidator(): Validator + private function getValidator(): Validator|bool { /** @var HttpFilter $filter */ $filter = Snowflake::app()->get('filter'); @@ -565,20 +565,6 @@ class Node extends HttpService } - /** - * @return mixed - * @throws Exception - */ - private function runWith(): mixed - { - if (func_num_args() > 0) { - return call_user_func($this->callback, ...func_get_args()); - } else { - return call_user_func($this->callback, \request()); - } - } - - /** * @return string */