From e284c5d3240ad498d1d700eb108bcb64432aa166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 14 Dec 2020 18:01:01 +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/Reduce.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Route/Reduce.php b/HttpServer/Route/Reduce.php index 1a150aa6..03709ee0 100644 --- a/HttpServer/Route/Reduce.php +++ b/HttpServer/Route/Reduce.php @@ -6,6 +6,7 @@ namespace HttpServer\Route; use Closure; use HttpServer\IInterface\After; +use HttpServer\IInterface\Middleware; class Reduce { @@ -47,7 +48,7 @@ class Reduce { return function ($stack, $pipe) { return function ($passable) use ($stack, $pipe) { - if ($pipe instanceof \HttpServer\IInterface\Middleware) { + if ($pipe instanceof Middleware) { return $pipe->onHandler($passable, $stack); } else { return $pipe($passable, $stack);