[Security][SecurityBundle] User authorization checker

by @natewiebe13

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

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();

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible

0
Deprecation Messages