From bd178268acbdf213c419d135719f6c03a0410262 Mon Sep 17 00:00:00 2001 From: mscherer Date: Wed, 13 Dec 2023 09:24:20 +0100 Subject: [PATCH] Fix PHPStan --- src/Controller/Component/LegacyAuthComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/Component/LegacyAuthComponent.php b/src/Controller/Component/LegacyAuthComponent.php index 7a4f3161..0f248e11 100644 --- a/src/Controller/Component/LegacyAuthComponent.php +++ b/src/Controller/Component/LegacyAuthComponent.php @@ -350,7 +350,7 @@ protected function _unauthenticated(Controller $controller): ?Response { } $result = $auth->unauthenticated($controller->getRequest(), $response); if ($result !== null) { - return $result instanceof Response ? $result : null; + return $result; } if (!$controller->getRequest()->is('ajax')) {