From 3350c76a551bb8fb1a190bc72301cd137b0e0480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Mar 2021 17:27:59 +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 fcfbf4de..6cc08606 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -443,7 +443,7 @@ class Node extends HttpService $_searchMatch = '/<(\w+)?:(.+)?>/'; foreach ($this->childes as $key => $val) { - if (preg_match($_searchMatch, $key, $match)) { + if (preg_match($_searchMatch, (string)$key, $match)) { Input()->addGetParam($match[1] ?? '--', $search); return $this->childes[$key]; }