Skip to content

Commit a19e5ae

Browse files
committed
minor #43903 Fix more generic types (derrabus)
This PR was merged into the 5.4 branch. Discussion ---------- Fix more generic types | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Some changes I wanted to push to #42471, but then it got merged already. 😇 Commits ------- c54d61e9af Fix more generic types
2 parents 6bad75b + e19025f commit a19e5ae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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
{

0 commit comments

Comments
 (0)