From b26196166572596ce1c55b9d6b6311cb6800d5a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 20 May 2021 15:01:46 +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 23911d3a..13e1d605 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -121,7 +121,7 @@ class Node extends HttpService */ public function createDispatch(): Closure { - return function () { + return static function () { $dispatchParam = Context::getContext('dispatch-param'); if (empty($dispatchParam)) { $dispatchParam = [\request()];