From d2580b69ecebb15d3776aaa9bf6d61951d2eb263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Jul 2021 19:38:36 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 0c39df4c..a3a76616 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -127,7 +127,7 @@ class Node extends HttpService * @throws NotFindClassException * @throws Exception */ - private function createDispatch(): Closure + #[Pure] private function createDispatch(): Closure { return $this->normalHandler($this, $this->handler); @@ -161,6 +161,7 @@ class Node extends HttpService /** * @param $application + * @param $handler * @return Closure */ private function normalHandler($application, $handler): Closure