Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Dec 13, 2023
1 parent 8f77201 commit bd17826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component/LegacyAuthComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit bd17826

Please sign in to comment.