From 55092f1aa7958ed09fb785ef93250b757f41a249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 14 Dec 2020 17:43:38 +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/IInterface/Middleware.php | 2 +- HttpServer/Route/Node.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HttpServer/IInterface/Middleware.php b/HttpServer/IInterface/Middleware.php index a6c6c58e..b9bab7b6 100644 --- a/HttpServer/IInterface/Middleware.php +++ b/HttpServer/IInterface/Middleware.php @@ -21,6 +21,6 @@ interface Middleware * @param Closure $next * @return mixed */ - public function handler(Request $request, Closure $next): mixed; + public function onHandler(Request $request, Closure $next): mixed; } diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 70824b43..a1bd7ed5 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -404,7 +404,7 @@ class Node extends Application /** * @throws Exception */ - private function restructure() + private function restructure(): static { if (empty($this->handler)) { return $this;