Skip to content

Commit bd17826

Browse files
committed
Fix PHPStan
1 parent 8f77201 commit bd17826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/Component/LegacyAuthComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ protected function _unauthenticated(Controller $controller): ?Response {
350350
}
351351
$result = $auth->unauthenticated($controller->getRequest(), $response);
352352
if ($result !== null) {
353-
return $result instanceof Response ? $result : null;
353+
return $result;
354354
}
355355

356356
if (!$controller->getRequest()->is('ajax')) {

0 commit comments

Comments
 (0)