Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de34f22

Browse files
committed
minor #35213 [Security\Guard] Fix missing typehints (chalasr)
This PR was merged into the 4.3 branch. Discussion ---------- [Security\Guard] Fix missing typehints | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- 2ef8771 [Security\Guard] Fix missing typehints
2 parents f9b36c7 + 2ef8771 commit de34f22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Security/Guard/Firewall/GuardAuthenticationListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class GuardAuthenticationListener implements ListenerInterface
5151
* @param iterable|AuthenticatorInterface[] $guardAuthenticators The authenticators, with keys that match what's passed to GuardAuthenticationProvider
5252
* @param LoggerInterface $logger A LoggerInterface instance
5353
*/
54-
public function __construct(GuardAuthenticatorHandler $guardHandler, AuthenticationManagerInterface $authenticationManager, string $providerKey, $guardAuthenticators, LoggerInterface $logger = null)
54+
public function __construct(GuardAuthenticatorHandler $guardHandler, AuthenticationManagerInterface $authenticationManager, string $providerKey, iterable $guardAuthenticators, LoggerInterface $logger = null)
5555
{
5656
if (empty($providerKey)) {
5757
throw new \InvalidArgumentException('$providerKey must not be empty.');

src/Symfony/Component/Security/Guard/Provider/GuardAuthenticationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class GuardAuthenticationProvider implements AuthenticationProviderInterface
4545
* @param UserProviderInterface $userProvider The user provider
4646
* @param string $providerKey The provider (i.e. firewall) key
4747
*/
48-
public function __construct($guardAuthenticators, UserProviderInterface $userProvider, string $providerKey, UserCheckerInterface $userChecker)
48+
public function __construct(iterable $guardAuthenticators, UserProviderInterface $userProvider, string $providerKey, UserCheckerInterface $userChecker)
4949
{
5050
$this->guardAuthenticators = $guardAuthenticators;
5151
$this->userProvider = $userProvider;

0 commit comments

Comments
 (0)