From 23f1a3059a4cd6ac9cc4bfd5d127864a6e60efa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 16 Dec 2020 16:18:31 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 3145afcb..58840125 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -401,7 +401,7 @@ class Node extends Application if (!($class instanceof \HttpServer\IInterface\Middleware)) { return; } - $class = [$class, 'onHandler']; + $class = [[$class, 'onHandler']]; } if (!is_array($class) || is_object($class[0])) { $class = [$class];