Skip to content

Commit e9bc479

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

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CacheWarmer/ExpressionCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ExpressionCacheWarmer implements CacheWarmerInterface
2121
private $expressionLanguage;
2222

2323
/**
24-
* @param iterable<int, Expression> $expressions
24+
* @param iterable<mixed, Expression> $expressions
2525
*/
2626
public function __construct(iterable $expressions, ExpressionLanguage $expressionLanguage)
2727
{

DependencyInjection/MainConfiguration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class MainConfiguration implements ConfigurationInterface
4242
private $userProviderFactories;
4343

4444
/**
45-
* @param array<int, SecurityFactoryInterface|AuthenticatorFactoryInterface> $factories
45+
* @param array<array-key, SecurityFactoryInterface|AuthenticatorFactoryInterface> $factories
4646
*/
4747
public function __construct(array $factories, array $userProviderFactories)
4848
{
@@ -220,7 +220,7 @@ private function addAccessControlSection(ArrayNodeDefinition $rootNode)
220220
}
221221

222222
/**
223-
* @param array<int, SecurityFactoryInterface|AuthenticatorFactoryInterface> $factories
223+
* @param array<array-key, SecurityFactoryInterface|AuthenticatorFactoryInterface> $factories
224224
*/
225225
private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $factories)
226226
{

DependencyInjection/SecurityExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ class SecurityExtension extends Extension implements PrependExtensionInterface
6363
private $requestMatchers = [];
6464
private $expressions = [];
6565
private $contextListeners = [];
66-
/** @var array<array{0: int, 1: AuthenticatorFactoryInterface|SecurityFactoryInterface}> */
66+
/** @var list<array{int, AuthenticatorFactoryInterface|SecurityFactoryInterface}> */
6767
private $factories = [];
68-
/** @var (AuthenticatorFactoryInterface|SecurityFactoryInterface)[] */
68+
/** @var list<AuthenticatorFactoryInterface|SecurityFactoryInterface> */
6969
private $sortedFactories = [];
7070
private $userProviderFactories = [];
7171
private $statelessFirewallKeys = [];

Security/FirewallContext.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class FirewallContext
2727
private $logoutListener;
2828
private $config;
2929

30+
/**
31+
* @param iterable<mixed, callable> $listeners
32+
*/
3033
public function __construct(iterable $listeners, ExceptionListener $exceptionListener = null, LogoutListener $logoutListener = null, FirewallConfig $config = null)
3134
{
3235
$this->listeners = $listeners;
@@ -40,6 +43,9 @@ public function getConfig()
4043
return $this->config;
4144
}
4245

46+
/**
47+
* @return iterable<mixed, callable>
48+
*/
4349
public function getListeners(): iterable
4450
{
4551
return $this->listeners;

0 commit comments

Comments
 (0)