diff --git a/src/core/Authenticator/LoginFormAuthenticator.php b/src/core/Authenticator/LoginFormAuthenticator.php index 1b292ea..96a860f 100644 --- a/src/core/Authenticator/LoginFormAuthenticator.php +++ b/src/core/Authenticator/LoginFormAuthenticator.php @@ -39,7 +39,7 @@ class LoginFormAuthenticator extends AbstractLoginFormAuthenticator $this->passwordEncoder = $passwordEncoder; } - public function supports(Request $request) + public function supports(Request $request): bool { return 'auth_login' === $request->attributes->get('_route') && $request->isMethod('POST'); } @@ -89,7 +89,7 @@ class LoginFormAuthenticator extends AbstractLoginFormAuthenticator return new RedirectResponse($this->urlGenerator->generate('admin_dashboard_index')); } - protected function getLoginUrl() + protected function getLoginUrl(): string { return $this->urlGenerator->generate('auth_login'); }