From 1e2770a94ab7c3eff825be3ea035d4c707bce7c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sat, 18 Sep 2021 11:21:45 +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 --- 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 1cbcfc77..6d4c2b00 100644 --- a/http-handler/Abstracts/Handler.php +++ b/http-handler/Abstracts/Handler.php @@ -64,7 +64,7 @@ abstract class Handler implements RequestHandlerInterface $controller = Kiri::getDi()->get($controller); $response = call_user_func([$controller, $action], ...$this->handler->params); - if (!$response instanceof ResponseInterface) { + if (!($response instanceof ResponseInterface)) { $response = $this->transferToResponse($response); } return $response;