From 0190ceff700b6a7e65b2a5cfe851d0ba97636ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 30 Oct 2020 01:17:08 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index af9d25c2..eb324894 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -52,7 +52,7 @@ class Node extends Application * @return Node * @throws */ - public function bindHandler(Closure|array $handler) + public function bindHandler($handler) { if ($handler instanceof Closure) { $this->handler = $handler; @@ -222,7 +222,7 @@ class Node extends Application * @param Closure|array|string $handler * @throws Exception */ - public function addInterceptor(Closure|string|array $handler) + public function addInterceptor($handler) { $this->_interceptors[] = $handler; @@ -233,7 +233,7 @@ class Node extends Application * @param Closure|array|string $handler * @throws Exception */ - public function addAfter(Closure|string|array $handler) + public function addAfter($handler) { $this->_after[] = $handler; } @@ -243,7 +243,7 @@ class Node extends Application * @param Closure|array|string $handler * @throws Exception */ - public function addLimits(Closure|string|array $handler) + public function addLimits($handler) { $this->_limits[] = $handler; @@ -375,7 +375,7 @@ class Node extends Application * @param string|\Closure $class * @throws Exception */ - public function addMiddleware(Closure|string $class) + public function addMiddleware($class) { if (!is_callable($class, true)) { return;