Skip to content

Commit e19025f

Browse files
committed
Fix more generic types
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 57ff35e commit e19025f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Authentication/AuthenticationProviderManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ class AuthenticationProviderManager implements AuthenticationManagerInterface
4747
private $eventDispatcher;
4848

4949
/**
50-
* @param iterable<int, AuthenticationProviderInterface> $providers An iterable with AuthenticationProviderInterface instances as values
51-
* @param bool $eraseCredentials Whether to erase credentials after authentication or not
50+
* @param iterable<mixed, AuthenticationProviderInterface> $providers An iterable with AuthenticationProviderInterface instances as values
51+
* @param bool $eraseCredentials Whether to erase credentials after authentication or not
5252
*
5353
* @throws \InvalidArgumentException
5454
*/

Authorization/TraceableAccessDecisionManager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class TraceableAccessDecisionManager implements AccessDecisionManagerInterface
2626
{
2727
private $manager;
2828
private $strategy;
29+
/** @var iterable<mixed, VoterInterface> */
2930
private $voters = [];
3031
private $decisionLog = []; // All decision logs
3132
private $currentLog = []; // Logs being filled in
@@ -98,7 +99,7 @@ public function getStrategy(): string
9899
}
99100

100101
/**
101-
* @return iterable<int, VoterInterface>
102+
* @return iterable<mixed, VoterInterface>
102103
*/
103104
public function getVoters(): iterable
104105
{

User/ChainUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ChainUserProvider implements UserProviderInterface, PasswordUpgraderInterf
2727
private $providers;
2828

2929
/**
30-
* @param iterable<int, UserProviderInterface> $providers
30+
* @param iterable<array-key, UserProviderInterface> $providers
3131
*/
3232
public function __construct(iterable $providers)
3333
{

0 commit comments

Comments
 (0)