diff --git a/templates/resetPassword/ResetPasswordController.tpl.php b/templates/resetPassword/ResetPasswordController.tpl.php index 7ce8c55c2..acf009226 100644 --- a/templates/resetPassword/ResetPasswordController.tpl.php +++ b/templates/resetPassword/ResetPasswordController.tpl.php @@ -57,7 +57,7 @@ public function checkEmail(): Response * Validates and process the reset URL that the user clicked in their email. */ #[Route('/reset/{token}', name: 'app_reset_password')] - public function reset(Request $request, UserPasswordHasherInterface $passwordHasher, TranslatorInterface $translator, string $token = null): Response + public function reset(Request $request, UserPasswordHasherInterface $passwordHasher, TranslatorInterface $translator, ?string $token = null): Response { if ($token) { // We store the token in session and remove it from the URL, to avoid the URL being