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 */