Skip to content

Commit

Permalink
Add generic types to traversable implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Nov 3, 2021
1 parent 6a09bca commit 80c6fab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Firewall/GuardAuthenticationListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class GuardAuthenticationListener extends AbstractListener
private $hideUserNotFoundExceptions;

/**
* @param string $providerKey The provider (i.e. firewall) key
* @param iterable|AuthenticatorInterface[] $guardAuthenticators The authenticators, with keys that match what's passed to GuardAuthenticationProvider
* @param string $providerKey The provider (i.e. firewall) key
* @param iterable<array-key, AuthenticatorInterface> $guardAuthenticators The authenticators, with keys that match what's passed to GuardAuthenticationProvider
*/
public function __construct(GuardAuthenticatorHandler $guardHandler, AuthenticationManagerInterface $authenticationManager, string $providerKey, iterable $guardAuthenticators, LoggerInterface $logger = null, bool $hideUserNotFoundExceptions = true)
{
Expand Down
9 changes: 3 additions & 6 deletions Provider/GuardAuthenticationProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,16 @@
*/
class GuardAuthenticationProvider implements AuthenticationProviderInterface
{
/**
* @var AuthenticatorInterface[]
*/
private $guardAuthenticators;
private $userProvider;
private $providerKey;
private $userChecker;
private $passwordHasher;

/**
* @param iterable|AuthenticatorInterface[] $guardAuthenticators The authenticators, with keys that match what's passed to GuardAuthenticationListener
* @param string $providerKey The provider (i.e. firewall) key
* @param UserPasswordHasherInterface $passwordHasher
* @param iterable<array-key, AuthenticatorInterface> $guardAuthenticators The authenticators, with keys that match what's passed to GuardAuthenticationListener
* @param string $providerKey The provider (i.e. firewall) key
* @param UserPasswordHasherInterface $passwordHasher
*/
public function __construct(iterable $guardAuthenticators, UserProviderInterface $userProvider, string $providerKey, UserCheckerInterface $userChecker, $passwordHasher = null)
{
Expand Down

0 comments on commit 80c6fab

Please sign in to comment.