From fdbca3d7ad660019461a74251252625b016fab2d Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 27 Jul 2021 03:33:49 +0800 Subject: [PATCH] modify --- HttpServer/Route/Node.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 75a3daee..48187991 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -94,7 +94,7 @@ class Node extends HttpService } else { $this->handler = $handler; } - if (!empty($this->handler)) { + if (!empty($this->handler) && is_array($this->handler)) { $this->callback = di(Middlewares::class)->callerMiddlewares( $this->handler[0], $this->handler[1], $this->createDispatch() );