From dffcc52dbd88b970797456e11ea755796042535d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 15 Oct 2020 10:53: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/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Route/Router.php b/HttpServer/Route/Router.php index 1d5215d6..9d2fb68e 100644 --- a/HttpServer/Route/Router.php +++ b/HttpServer/Route/Router.php @@ -303,7 +303,7 @@ class Router extends Application implements RouterInterface } $name = array_column($this->groupTacks, 'middleware'); - if (!empty($this->middleware) && $this->middleware instanceof \Closure) { + if ($this->middleware instanceof \Closure) { array_unshift($name, $this->middleware); } $node->bindMiddleware($name);