Skip to content

Commit c54d61e

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

37 files changed

+97
-67
lines changed

src/Symfony/Bridge/Doctrine/SchemaListener/MessengerTransportDoctrineSchemaSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class MessengerTransportDoctrineSchemaSubscriber implements EventSubscribe
3131
private $transports;
3232

3333
/**
34-
* @param iterable<int, TransportInterface> $transports
34+
* @param iterable<mixed, TransportInterface> $transports
3535
*/
3636
public function __construct(iterable $transports)
3737
{

src/Symfony/Bridge/Doctrine/SchemaListener/PdoCacheAdapterDoctrineSchemaSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class PdoCacheAdapterDoctrineSchemaSubscriber implements EventSubscriber
3030
private $pdoAdapters;
3131

3232
/**
33-
* @param iterable<int, PdoAdapter> $pdoAdapters
33+
* @param iterable<mixed, PdoAdapter> $pdoAdapters
3434
*/
3535
public function __construct(iterable $pdoAdapters)
3636
{

src/Symfony/Bridge/Doctrine/SchemaListener/RememberMeTokenProviderDoctrineSchemaSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class RememberMeTokenProviderDoctrineSchemaSubscriber implements EventSubs
2828
private $rememberMeHandlers;
2929

3030
/**
31-
* @param iterable<int, RememberMeHandlerInterface> $rememberMeHandlers
31+
* @param iterable<mixed, RememberMeHandlerInterface> $rememberMeHandlers
3232
*/
3333
public function __construct(iterable $rememberMeHandlers)
3434
{

src/Symfony/Bundle/SecurityBundle/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
{

src/Symfony/Bundle/SecurityBundle/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
{

src/Symfony/Bundle/SecurityBundle/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 = [];

src/Symfony/Bundle/SecurityBundle/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;

src/Symfony/Component/Config/ResourceCheckerConfigCache.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ class ResourceCheckerConfigCache implements ConfigCacheInterface
2929
private $file;
3030

3131
/**
32-
* @var iterable<int, ResourceCheckerInterface>
32+
* @var iterable<mixed, ResourceCheckerInterface>
3333
*/
3434
private $resourceCheckers;
3535

3636
/**
37-
* @param string $file The absolute cache path
38-
* @param iterable<int, ResourceCheckerInterface> $resourceCheckers The ResourceCheckers to use for the freshness check
37+
* @param string $file The absolute cache path
38+
* @param iterable<mixed, ResourceCheckerInterface> $resourceCheckers The ResourceCheckers to use for the freshness check
3939
*/
4040
public function __construct(string $file, iterable $resourceCheckers = [])
4141
{

src/Symfony/Component/Console/Helper/HelperSet.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
*/
2424
class HelperSet implements \IteratorAggregate
2525
{
26-
/**
27-
* @var Helper[]
28-
*/
26+
/** @var array<string, Helper> */
2927
private $helpers = [];
3028
private $command;
3129

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Crawler implements \Countable, \IteratorAggregate
6262
private $document;
6363

6464
/**
65-
* @var \DOMNode[]
65+
* @var list<\DOMNode>
6666
*/
6767
private $nodes = [];
6868

0 commit comments

Comments
 (0)