Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 4207808

Browse files
committed
[Security\Guard] Fix missing typehints
1 parent 12b248c commit 4207808

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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.');

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)