From 5870e44c96a8dde0d3c539cd066eef7c12db1cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 30 Oct 2020 01:22:50 +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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index eb324894..b96d2973 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -34,7 +34,9 @@ class Node extends Application private string $_error = ''; public array $rules = []; - public ?Closure $handler; + + /** @var ?Closure|?array */ + public $handler; public string $htmlSuffix = '.html'; public bool $enableHtmlSuffix = false; public array $namespace = [];