]> Raphaël G. Git Repositories - userbundle/commitdiff
Fix constructor prototype
authorRaphaël Gertz <git@rapsys.eu>
Wed, 28 Feb 2024 10:48:25 +0000 (11:48 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 28 Feb 2024 10:48:25 +0000 (11:48 +0100)
Handler/AuthenticationFailureHandler.php

index c88e138b453b575b75a10e50cff53d99ccadbb63..c5d0ec5fd43f7adbf827dee72a2cdc41c4a4ab4e 100644 (file)
@@ -72,7 +72,7 @@ class AuthenticationFailureHandler extends DefaultAuthenticationFailureHandler {
         *
         * {@inheritdoc}
         */
         *
         * {@inheritdoc}
         */
-       public function __construct(protected HttpKernelInterface $httpKernel, protected HttpUtils $httpUtils, protected array $options, protected LoggerInterface $logger, protected ContainerInterface $container, protected ManagerRegistry $doctrine, protected MailerInterface $mailer, protected RouterInterface $router, protected SluggerUtil $slugger, protected RequestStack $stack, protected TranslatorInterface $translator) {
+       public function __construct(protected HttpKernelInterface $httpKernel, protected HttpUtils $httpUtils, protected array $options, protected ?LoggerInterface $logger, protected ContainerInterface $container, protected ManagerRegistry $doctrine, protected MailerInterface $mailer, protected RouterInterface $router, protected SluggerUtil $slugger, protected RequestStack $stack, protected TranslatorInterface $translator) {
                //Call parent constructor
                parent::__construct($httpKernel, $httpUtils, $options, $logger);
 
                //Call parent constructor
                parent::__construct($httpKernel, $httpUtils, $options, $logger);