From b20d542dc33d240dd74d628d23cabaccf6e393b7 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 25 Jan 2023 22:14:18 +0100 Subject: [PATCH] feat(upgrade): add compliance with symfony 6.2 --- src/core/Authenticator/LoginFormAuthenticator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); }