Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:
curl https://fabbot.io/patch/symfony/symfony/48142/1e9a3e20e6094d905d878bc634cb3214f48b1351/cs.diff | patch -p0
diff -ru src/Symfony/Bundle/SecurityBundle/Security.php src/Symfony/Bundle/SecurityBundle/Security.php
--- src/Symfony/Bundle/SecurityBundle/Security.php 2024-04-26 12:59:04.980097760 +0000
+++ src/Symfony/Bundle/SecurityBundle/Security.php 2024-04-26 12:59:09.455254704 +0000
@@ -88,7 +88,7 @@
*
* @return Response|null The authenticator success response if any
*/
- public function login(UserInterface $user, string $authenticatorName = null, string $firewallName = null, array $badges = []): ?Response
+ public function login(UserInterface $user, ?string $authenticatorName = null, ?string $firewallName = null, array $badges = []): ?Response
{
$request = $this->container->get('request_stack')->getCurrentRequest();
$firewallName ??= $this->getFirewallConfig($request)?->getName();