From 0bbc9c17b0c754afb67a83d41751fd27be7a3759 Mon Sep 17 00:00:00 2001 From: Nate Wiebe Date: Thu, 21 Aug 2025 10:42:26 -0400 Subject: [PATCH] Update arg type to be nullable --- templates/resetPassword/ResetPasswordController.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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