From e65ca9c03dcedce549ff90a54af55911720c805f Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 26 Sep 2021 00:37:38 +0800 Subject: [PATCH] 111 --- http-handler/Abstracts/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http-handler/Abstracts/Handler.php b/http-handler/Abstracts/Handler.php index 1426b80e..8bcac412 100644 --- a/http-handler/Abstracts/Handler.php +++ b/http-handler/Abstracts/Handler.php @@ -44,7 +44,7 @@ abstract class Handler implements RequestHandlerInterface */ protected function execute(ServerRequestInterface $request): ResponseInterface { - if (empty($this->middlewares) || !isset($this->middlewares[$this->offset])) { + if (empty($this->middlewares) || !array_key_exists($this->offset, $this->middlewares)) { return $this->dispatcher($request); }