diff --git a/src/Symfony/Bridge/Doctrine/SchemaListener/MessengerTransportDoctrineSchemaSubscriber.php b/src/Symfony/Bridge/Doctrine/SchemaListener/MessengerTransportDoctrineSchemaSubscriber.php index 904d62bbf6552..2999d25afe33f 100644 --- a/src/Symfony/Bridge/Doctrine/SchemaListener/MessengerTransportDoctrineSchemaSubscriber.php +++ b/src/Symfony/Bridge/Doctrine/SchemaListener/MessengerTransportDoctrineSchemaSubscriber.php @@ -31,7 +31,7 @@ final class MessengerTransportDoctrineSchemaSubscriber implements EventSubscribe private $transports; /** - * @param iterable $transports + * @param iterable $transports */ public function __construct(iterable $transports) { diff --git a/src/Symfony/Bridge/Doctrine/SchemaListener/PdoCacheAdapterDoctrineSchemaSubscriber.php b/src/Symfony/Bridge/Doctrine/SchemaListener/PdoCacheAdapterDoctrineSchemaSubscriber.php index 20ac1ed0efd1e..a46d4fa814cb4 100644 --- a/src/Symfony/Bridge/Doctrine/SchemaListener/PdoCacheAdapterDoctrineSchemaSubscriber.php +++ b/src/Symfony/Bridge/Doctrine/SchemaListener/PdoCacheAdapterDoctrineSchemaSubscriber.php @@ -30,7 +30,7 @@ final class PdoCacheAdapterDoctrineSchemaSubscriber implements EventSubscriber private $pdoAdapters; /** - * @param iterable $pdoAdapters + * @param iterable $pdoAdapters */ public function __construct(iterable $pdoAdapters) { diff --git a/src/Symfony/Bridge/Doctrine/SchemaListener/RememberMeTokenProviderDoctrineSchemaSubscriber.php b/src/Symfony/Bridge/Doctrine/SchemaListener/RememberMeTokenProviderDoctrineSchemaSubscriber.php index d5805196bdf30..9eec839679ffc 100644 --- a/src/Symfony/Bridge/Doctrine/SchemaListener/RememberMeTokenProviderDoctrineSchemaSubscriber.php +++ b/src/Symfony/Bridge/Doctrine/SchemaListener/RememberMeTokenProviderDoctrineSchemaSubscriber.php @@ -28,7 +28,7 @@ final class RememberMeTokenProviderDoctrineSchemaSubscriber implements EventSubs private $rememberMeHandlers; /** - * @param iterable $rememberMeHandlers + * @param iterable $rememberMeHandlers */ public function __construct(iterable $rememberMeHandlers) { diff --git a/src/Symfony/Bundle/SecurityBundle/CacheWarmer/ExpressionCacheWarmer.php b/src/Symfony/Bundle/SecurityBundle/CacheWarmer/ExpressionCacheWarmer.php index d50f710d53038..095286e66538a 100644 --- a/src/Symfony/Bundle/SecurityBundle/CacheWarmer/ExpressionCacheWarmer.php +++ b/src/Symfony/Bundle/SecurityBundle/CacheWarmer/ExpressionCacheWarmer.php @@ -21,7 +21,7 @@ class ExpressionCacheWarmer implements CacheWarmerInterface private $expressionLanguage; /** - * @param iterable $expressions + * @param iterable $expressions */ public function __construct(iterable $expressions, ExpressionLanguage $expressionLanguage) { diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php index e7eb3f0f2804a..546f50b67b4db 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php @@ -42,7 +42,7 @@ class MainConfiguration implements ConfigurationInterface private $userProviderFactories; /** - * @param array $factories + * @param array $factories */ public function __construct(array $factories, array $userProviderFactories) { @@ -220,7 +220,7 @@ private function addAccessControlSection(ArrayNodeDefinition $rootNode) } /** - * @param array $factories + * @param array $factories */ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $factories) { diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php index 2cfd73fead5b3..809535e171e27 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php @@ -63,9 +63,9 @@ class SecurityExtension extends Extension implements PrependExtensionInterface private $requestMatchers = []; private $expressions = []; private $contextListeners = []; - /** @var array */ + /** @var list */ private $factories = []; - /** @var (AuthenticatorFactoryInterface|SecurityFactoryInterface)[] */ + /** @var list */ private $sortedFactories = []; private $userProviderFactories = []; private $statelessFirewallKeys = []; diff --git a/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php b/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php index 00754e4363cfc..4ebc9c7de0dc7 100644 --- a/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php +++ b/src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php @@ -27,6 +27,9 @@ class FirewallContext private $logoutListener; private $config; + /** + * @param iterable $listeners + */ public function __construct(iterable $listeners, ExceptionListener $exceptionListener = null, LogoutListener $logoutListener = null, FirewallConfig $config = null) { $this->listeners = $listeners; @@ -40,6 +43,9 @@ public function getConfig() return $this->config; } + /** + * @return iterable + */ public function getListeners(): iterable { return $this->listeners; diff --git a/src/Symfony/Component/Config/ResourceCheckerConfigCache.php b/src/Symfony/Component/Config/ResourceCheckerConfigCache.php index fa12fe9fa2ae1..a0d301c1f1ce6 100644 --- a/src/Symfony/Component/Config/ResourceCheckerConfigCache.php +++ b/src/Symfony/Component/Config/ResourceCheckerConfigCache.php @@ -29,13 +29,13 @@ class ResourceCheckerConfigCache implements ConfigCacheInterface private $file; /** - * @var iterable + * @var iterable */ private $resourceCheckers; /** - * @param string $file The absolute cache path - * @param iterable $resourceCheckers The ResourceCheckers to use for the freshness check + * @param string $file The absolute cache path + * @param iterable $resourceCheckers The ResourceCheckers to use for the freshness check */ public function __construct(string $file, iterable $resourceCheckers = []) { diff --git a/src/Symfony/Component/Console/Helper/HelperSet.php b/src/Symfony/Component/Console/Helper/HelperSet.php index bab0aec3512c5..719762d242ca9 100644 --- a/src/Symfony/Component/Console/Helper/HelperSet.php +++ b/src/Symfony/Component/Console/Helper/HelperSet.php @@ -23,9 +23,7 @@ */ class HelperSet implements \IteratorAggregate { - /** - * @var Helper[] - */ + /** @var array */ private $helpers = []; private $command; diff --git a/src/Symfony/Component/DomCrawler/Crawler.php b/src/Symfony/Component/DomCrawler/Crawler.php index f64e5b5dfa3af..67f1134764f7a 100644 --- a/src/Symfony/Component/DomCrawler/Crawler.php +++ b/src/Symfony/Component/DomCrawler/Crawler.php @@ -62,7 +62,7 @@ class Crawler implements \Countable, \IteratorAggregate private $document; /** - * @var \DOMNode[] + * @var list<\DOMNode> */ private $nodes = []; diff --git a/src/Symfony/Component/EventDispatcher/GenericEvent.php b/src/Symfony/Component/EventDispatcher/GenericEvent.php index 51aa47bc00b63..b32a301ae9b51 100644 --- a/src/Symfony/Component/EventDispatcher/GenericEvent.php +++ b/src/Symfony/Component/EventDispatcher/GenericEvent.php @@ -172,7 +172,7 @@ public function offsetExists($key) /** * IteratorAggregate for iterating over the object like an array. * - * @return \ArrayIterator + * @return \ArrayIterator */ #[\ReturnTypeWillChange] public function getIterator() diff --git a/src/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.php b/src/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.php index 4a9a31b33bfba..f593a3f08233f 100644 --- a/src/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.php @@ -16,8 +16,8 @@ * * @author Fabien Potencier * - * @template TKey - * @template TValue + * @template-covariant TKey + * @template-covariant TValue * * @extends \FilterIterator */ diff --git a/src/Symfony/Component/Form/Button.php b/src/Symfony/Component/Form/Button.php index 10fc9521c95aa..1ffdd469fcec1 100644 --- a/src/Symfony/Component/Form/Button.php +++ b/src/Symfony/Component/Form/Button.php @@ -49,7 +49,7 @@ public function __construct(FormConfigInterface $config) /** * Unsupported method. * - * @param mixed $offset + * @param string $offset * * @return bool */ @@ -64,7 +64,7 @@ public function offsetExists($offset) * * This method should not be invoked. * - * @param mixed $offset + * @param string $offset * * @return FormInterface * @@ -81,8 +81,8 @@ public function offsetGet($offset) * * This method should not be invoked. * - * @param mixed $offset - * @param mixed $value + * @param string $offset + * @param FormInterface $value * * @return void * @@ -99,7 +99,7 @@ public function offsetSet($offset, $value) * * This method should not be invoked. * - * @param mixed $offset + * @param string $offset * * @return void * diff --git a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php index 64ef514d47d14..625c0b99fff4f 100644 --- a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php +++ b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php @@ -17,11 +17,13 @@ /** * @author Bernhard Schussek + * + * @implements \IteratorAggregate */ class ViolationPath implements \IteratorAggregate, PropertyPathInterface { /** - * @var string[] + * @var list */ private $elements = []; diff --git a/src/Symfony/Component/Form/FormBuilderInterface.php b/src/Symfony/Component/Form/FormBuilderInterface.php index ff76832fb8afa..52bf5b67922bf 100644 --- a/src/Symfony/Component/Form/FormBuilderInterface.php +++ b/src/Symfony/Component/Form/FormBuilderInterface.php @@ -14,7 +14,7 @@ /** * @author Bernhard Schussek * - * @extends \Traversable + * @extends \Traversable */ interface FormBuilderInterface extends \Traversable, \Countable, FormConfigBuilderInterface { diff --git a/src/Symfony/Component/Form/FormErrorIterator.php b/src/Symfony/Component/Form/FormErrorIterator.php index 2b688904eaff2..d1c6fb10b6f2f 100644 --- a/src/Symfony/Component/Form/FormErrorIterator.php +++ b/src/Symfony/Component/Form/FormErrorIterator.php @@ -44,7 +44,7 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array private $errors; /** - * @param array $errors + * @param list $errors * * @throws InvalidArgumentException If the errors are invalid */ diff --git a/src/Symfony/Component/Form/Util/OrderedHashMap.php b/src/Symfony/Component/Form/Util/OrderedHashMap.php index 3af50c3c95861..7d84cbe22ffb4 100644 --- a/src/Symfony/Component/Form/Util/OrderedHashMap.php +++ b/src/Symfony/Component/Form/Util/OrderedHashMap.php @@ -82,14 +82,14 @@ class OrderedHashMap implements \ArrayAccess, \IteratorAggregate, \Countable /** * The keys of the map in the order in which they were inserted or changed. * - * @var array + * @var list */ private $orderedKeys = []; /** * References to the cursors of all open iterators. * - * @var array + * @var array */ private $managedCursors = []; @@ -116,7 +116,7 @@ public function offsetExists($key) /** * {@inheritdoc} * - * @return mixed + * @return TValue */ #[\ReturnTypeWillChange] public function offsetGet($key) diff --git a/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php b/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php index b28a892d0884e..3baa29d894f87 100644 --- a/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php +++ b/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php @@ -18,27 +18,27 @@ * * @internal * - * @template TKey - * @template TValue + * @template-covariant TKey of array-key + * @template-covariant TValue * * @implements \Iterator */ class OrderedHashMapIterator implements \Iterator { /** - * @var array + * @var array */ private $elements; /** - * @var array + * @var list */ private $orderedKeys; /** * @var int */ - private $cursor; + private $cursor = 0; /** * @var int @@ -46,26 +46,26 @@ class OrderedHashMapIterator implements \Iterator private $cursorId; /** - * @var array + * @var array */ private $managedCursors; /** - * @var string|int|null + * @var TKey|null */ private $key; /** - * @var mixed + * @var TValue|null */ private $current; /** * @param array $elements The elements of the map, indexed by their * keys - * @param array $orderedKeys The keys of the map in the order in which + * @param list $orderedKeys The keys of the map in the order in which * they should be iterated - * @param array $managedCursors An array from which to reference the + * @param array $managedCursors An array from which to reference the * iterator's cursor as long as it is alive. * This array is managed by the corresponding * {@link OrderedHashMap} instance to support @@ -105,7 +105,7 @@ public function __destruct() /** * {@inheritdoc} * - * @return mixed + * @return TValue|null */ #[\ReturnTypeWillChange] public function current() @@ -132,7 +132,7 @@ public function next(): void /** * {@inheritdoc} * - * @return mixed + * @return TKey|null */ #[\ReturnTypeWillChange] public function key() diff --git a/src/Symfony/Component/HttpFoundation/HeaderBag.php b/src/Symfony/Component/HttpFoundation/HeaderBag.php index 2f5110287deff..4683a684095a5 100644 --- a/src/Symfony/Component/HttpFoundation/HeaderBag.php +++ b/src/Symfony/Component/HttpFoundation/HeaderBag.php @@ -16,7 +16,7 @@ * * @author Fabien Potencier * - * @implements \IteratorAggregate> + * @implements \IteratorAggregate> */ class HeaderBag implements \IteratorAggregate, \Countable { @@ -24,7 +24,7 @@ class HeaderBag implements \IteratorAggregate, \Countable protected const LOWER = '-abcdefghijklmnopqrstuvwxyz'; /** - * @var array> + * @var array> */ protected $headers = []; protected $cacheControl = []; @@ -255,7 +255,7 @@ public function removeCacheControlDirective(string $key) /** * Returns an iterator for headers. * - * @return \ArrayIterator> + * @return \ArrayIterator> */ #[\ReturnTypeWillChange] public function getIterator() diff --git a/src/Symfony/Component/HttpKernel/Kernel.php b/src/Symfony/Component/HttpKernel/Kernel.php index c332534c7b379..1f8a2c37b5d8d 100644 --- a/src/Symfony/Component/HttpKernel/Kernel.php +++ b/src/Symfony/Component/HttpKernel/Kernel.php @@ -58,7 +58,7 @@ class_exists(ConfigCache::class); abstract class Kernel implements KernelInterface, RebootableInterface, TerminableInterface { /** - * @var BundleInterface[] + * @var array */ protected $bundles = []; diff --git a/src/Symfony/Component/HttpKernel/KernelInterface.php b/src/Symfony/Component/HttpKernel/KernelInterface.php index 016c5f610cb13..41135a6d80bf9 100644 --- a/src/Symfony/Component/HttpKernel/KernelInterface.php +++ b/src/Symfony/Component/HttpKernel/KernelInterface.php @@ -31,7 +31,7 @@ interface KernelInterface extends HttpKernelInterface /** * Returns an array of bundles to register. * - * @return iterable + * @return iterable */ public function registerBundles(); @@ -55,7 +55,7 @@ public function shutdown(); /** * Gets the registered bundle instances. * - * @return BundleInterface[] + * @return array */ public function getBundles(); diff --git a/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php b/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php index 4b145120e2f2b..504ad0c482acf 100644 --- a/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php +++ b/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php @@ -21,6 +21,7 @@ class BufferedBundleReader implements BundleReaderInterface { private $reader; + /** @var RingBuffer */ private $buffer; /** diff --git a/src/Symfony/Component/Intl/Data/Util/RingBuffer.php b/src/Symfony/Component/Intl/Data/Util/RingBuffer.php index ec6708face060..2ab2a63897fde 100644 --- a/src/Symfony/Component/Intl/Data/Util/RingBuffer.php +++ b/src/Symfony/Component/Intl/Data/Util/RingBuffer.php @@ -22,12 +22,23 @@ * * @author Bernhard Schussek * + * @template TKey of array-key + * @template TValue + * + * @implements \ArrayAccess + * * @internal */ class RingBuffer implements \ArrayAccess { + /** + * @var array + */ private $values = []; + /** + * @var array + */ private $indices = []; private $cursor = 0; @@ -50,7 +61,7 @@ public function offsetExists($key): bool /** * {@inheritdoc} * - * @return mixed + * @return TValue */ #[\ReturnTypeWillChange] public function offsetGet($key) diff --git a/src/Symfony/Component/Ldap/Adapter/CollectionInterface.php b/src/Symfony/Component/Ldap/Adapter/CollectionInterface.php index 8a42c28797215..88f1f81380044 100644 --- a/src/Symfony/Component/Ldap/Adapter/CollectionInterface.php +++ b/src/Symfony/Component/Ldap/Adapter/CollectionInterface.php @@ -22,7 +22,7 @@ interface CollectionInterface extends \Countable, \IteratorAggregate, \ArrayAccess { /** - * @return array + * @return list */ public function toArray(); } diff --git a/src/Symfony/Component/Ldap/Adapter/ExtLdap/Collection.php b/src/Symfony/Component/Ldap/Adapter/ExtLdap/Collection.php index 9ca75514c37d0..460fcc01597ba 100644 --- a/src/Symfony/Component/Ldap/Adapter/ExtLdap/Collection.php +++ b/src/Symfony/Component/Ldap/Adapter/ExtLdap/Collection.php @@ -22,6 +22,7 @@ class Collection implements CollectionInterface { private $connection; private $search; + /** @var list|null */ private $entries; public function __construct(Connection $connection, Query $search) diff --git a/src/Symfony/Component/PropertyAccess/PropertyPath.php b/src/Symfony/Component/PropertyAccess/PropertyPath.php index faae716b6a0c6..e99c019a8d313 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyPath.php +++ b/src/Symfony/Component/PropertyAccess/PropertyPath.php @@ -32,7 +32,7 @@ class PropertyPath implements \IteratorAggregate, PropertyPathInterface /** * The elements of the property path. * - * @var string[] + * @var list */ private $elements = []; diff --git a/src/Symfony/Component/PropertyAccess/PropertyPathInterface.php b/src/Symfony/Component/PropertyAccess/PropertyPathInterface.php index 1716ae2c1511b..d58ad328fe45e 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyPathInterface.php +++ b/src/Symfony/Component/PropertyAccess/PropertyPathInterface.php @@ -49,7 +49,7 @@ public function getParent(); /** * Returns the elements of the property path as array. * - * @return string[] + * @return list */ public function getElements(); diff --git a/src/Symfony/Component/PropertyAccess/PropertyPathIterator.php b/src/Symfony/Component/PropertyAccess/PropertyPathIterator.php index 3445db2cb0dc4..a3335e31b5425 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyPathIterator.php +++ b/src/Symfony/Component/PropertyAccess/PropertyPathIterator.php @@ -16,6 +16,8 @@ * information about the current element. * * @author Bernhard Schussek + * + * @extends \ArrayIterator */ class PropertyPathIterator extends \ArrayIterator implements PropertyPathIteratorInterface { diff --git a/src/Symfony/Component/PropertyInfo/PropertyInfoExtractor.php b/src/Symfony/Component/PropertyInfo/PropertyInfoExtractor.php index dd2cc9f3eff04..eca169f1880a4 100644 --- a/src/Symfony/Component/PropertyInfo/PropertyInfoExtractor.php +++ b/src/Symfony/Component/PropertyInfo/PropertyInfoExtractor.php @@ -27,11 +27,11 @@ class PropertyInfoExtractor implements PropertyInfoExtractorInterface, PropertyI private $initializableExtractors; /** - * @param iterable $listExtractors - * @param iterable $typeExtractors - * @param iterable $descriptionExtractors - * @param iterable $accessExtractors - * @param iterable $initializableExtractors + * @param iterable $listExtractors + * @param iterable $typeExtractors + * @param iterable $descriptionExtractors + * @param iterable $accessExtractors + * @param iterable $initializableExtractors */ public function __construct(iterable $listExtractors = [], iterable $typeExtractors = [], iterable $descriptionExtractors = [], iterable $accessExtractors = [], iterable $initializableExtractors = []) { @@ -101,8 +101,8 @@ public function isInitializable(string $class, string $property, array $context /** * Iterates over registered extractors and return the first value found. * - * @param iterable $extractors - * @param list $arguments + * @param iterable $extractors + * @param list $arguments * * @return mixed */ diff --git a/src/Symfony/Component/Security/Core/Authentication/AuthenticationProviderManager.php b/src/Symfony/Component/Security/Core/Authentication/AuthenticationProviderManager.php index 35ea7f4ffd0e8..f8da847831510 100644 --- a/src/Symfony/Component/Security/Core/Authentication/AuthenticationProviderManager.php +++ b/src/Symfony/Component/Security/Core/Authentication/AuthenticationProviderManager.php @@ -47,8 +47,8 @@ class AuthenticationProviderManager implements AuthenticationManagerInterface private $eventDispatcher; /** - * @param iterable $providers An iterable with AuthenticationProviderInterface instances as values - * @param bool $eraseCredentials Whether to erase credentials after authentication or not + * @param iterable $providers An iterable with AuthenticationProviderInterface instances as values + * @param bool $eraseCredentials Whether to erase credentials after authentication or not * * @throws \InvalidArgumentException */ diff --git a/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php b/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php index f91a3df20de20..ab9842064b53c 100644 --- a/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php +++ b/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php @@ -26,6 +26,7 @@ class TraceableAccessDecisionManager implements AccessDecisionManagerInterface { private $manager; private $strategy; + /** @var iterable */ private $voters = []; private $decisionLog = []; // All decision logs private $currentLog = []; // Logs being filled in @@ -98,7 +99,7 @@ public function getStrategy(): string } /** - * @return iterable + * @return iterable */ public function getVoters(): iterable { diff --git a/src/Symfony/Component/Security/Core/User/ChainUserProvider.php b/src/Symfony/Component/Security/Core/User/ChainUserProvider.php index bcea41d0db860..148b239f1147c 100644 --- a/src/Symfony/Component/Security/Core/User/ChainUserProvider.php +++ b/src/Symfony/Component/Security/Core/User/ChainUserProvider.php @@ -27,7 +27,7 @@ class ChainUserProvider implements UserProviderInterface, PasswordUpgraderInterf private $providers; /** - * @param iterable $providers + * @param iterable $providers */ public function __construct(iterable $providers) { diff --git a/src/Symfony/Component/Security/Http/Firewall/ContextListener.php b/src/Symfony/Component/Security/Http/Firewall/ContextListener.php index 59fdd75fdef62..e09af80d76be9 100644 --- a/src/Symfony/Component/Security/Http/Firewall/ContextListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/ContextListener.php @@ -58,7 +58,7 @@ class ContextListener extends AbstractListener private $sessionTrackerEnabler; /** - * @param iterable $userProviders + * @param iterable $userProviders */ public function __construct(TokenStorageInterface $tokenStorage, iterable $userProviders, string $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, AuthenticationTrustResolverInterface $trustResolver = null, callable $sessionTrackerEnabler = null) { diff --git a/src/Symfony/Component/Security/Http/FirewallMap.php b/src/Symfony/Component/Security/Http/FirewallMap.php index 0ffd068dfbc28..cc9d853e96b42 100644 --- a/src/Symfony/Component/Security/Http/FirewallMap.php +++ b/src/Symfony/Component/Security/Http/FirewallMap.php @@ -24,8 +24,14 @@ */ class FirewallMap implements FirewallMapInterface { + /** + * @var list, ExceptionListener|null, LogoutListener|null}> + */ private $map = []; + /** + * @param list $listeners + */ public function add(RequestMatcherInterface $requestMatcher = null, array $listeners = [], ExceptionListener $exceptionListener = null, LogoutListener $logoutListener = null) { $this->map[] = [$requestMatcher, $listeners, $exceptionListener, $logoutListener]; diff --git a/src/Symfony/Component/Security/Http/FirewallMapInterface.php b/src/Symfony/Component/Security/Http/FirewallMapInterface.php index 133de2b67067d..480ea8ad6b4f1 100644 --- a/src/Symfony/Component/Security/Http/FirewallMapInterface.php +++ b/src/Symfony/Component/Security/Http/FirewallMapInterface.php @@ -35,7 +35,7 @@ interface FirewallMapInterface * If there is no logout listener, the third element of the outer array * must be null. * - * @return array{list, ExceptionListener, LogoutListener} + * @return array{iterable, ExceptionListener, LogoutListener} */ public function getListeners(Request $request); } diff --git a/src/Symfony/Component/Templating/PhpEngine.php b/src/Symfony/Component/Templating/PhpEngine.php index 93a334cefb75b..151ddeb2579ba 100644 --- a/src/Symfony/Component/Templating/PhpEngine.php +++ b/src/Symfony/Component/Templating/PhpEngine.php @@ -20,6 +20,8 @@ /** * PhpEngine is an engine able to render PHP templates. * + * @implements \ArrayAccess + * * @author Fabien Potencier */ class PhpEngine implements EngineInterface, \ArrayAccess diff --git a/src/Symfony/Component/Validator/ConstraintViolationList.php b/src/Symfony/Component/Validator/ConstraintViolationList.php index 6ed9666d5ce6c..3d459b2c18c91 100644 --- a/src/Symfony/Component/Validator/ConstraintViolationList.php +++ b/src/Symfony/Component/Validator/ConstraintViolationList.php @@ -21,16 +21,16 @@ class ConstraintViolationList implements \IteratorAggregate, ConstraintViolationListInterface { /** - * @var ConstraintViolationInterface[] + * @var list */ private $violations = []; /** * Creates a new constraint violation list. * - * @param ConstraintViolationInterface[] $violations The constraint violations to add to the list + * @param iterable $violations The constraint violations to add to the list */ - public function __construct(array $violations = []) + public function __construct(iterable $violations = []) { foreach ($violations as $violation) { $this->add($violation);