Skip to content

Commit d6e26c7

Browse files
committed
Add generic types to traversable implementations
1 parent 7699bed commit d6e26c7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
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|Expression[] $expressions
24+
* @param iterable<int, Expression> $expressions
2525
*/
2626
public function __construct(iterable $expressions, ExpressionLanguage $expressionLanguage)
2727
{

DependencyInjection/MainConfiguration.php

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

4444
/**
45-
* @param (SecurityFactoryInterface|AuthenticatorFactoryInterface)[] $factories
45+
* @param array<int, SecurityFactoryInterface|AuthenticatorFactoryInterface> $factories
4646
*/
4747
public function __construct(array $factories, array $userProviderFactories)
4848
{
@@ -219,6 +219,9 @@ private function addAccessControlSection(ArrayNodeDefinition $rootNode)
219219
;
220220
}
221221

222+
/**
223+
* @param array<int, SecurityFactoryInterface|AuthenticatorFactoryInterface> $factories
224+
*/
222225
private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $factories)
223226
{
224227
$firewallNodeBuilder = $rootNode

DependencyInjection/SecurityExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ private function isValidIp(string $cidr): bool
11881188
}
11891189

11901190
/**
1191-
* @return (AuthenticatorFactoryInterface|SecurityFactoryInterface)[]
1191+
* @return array<int, SecurityFactoryInterface|AuthenticatorFactoryInterface>
11921192
*/
11931193
private function getSortedFactories(): array
11941194
{

0 commit comments

Comments
 (0)