From 692a6e74959c49339f91b7e8a1aa7f6665bf6fa6 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 7 Aug 2019 17:24:11 +0200 Subject: [PATCH] Remove unneeded phpdocs --- .../DataCollector/DoctrineDataCollector.php | 3 +- .../AbstractDoctrineExtension.php | 18 +++++------ .../Form/ChoiceList/DoctrineChoiceLoader.php | 5 +-- .../Form/ChoiceList/ORMQueryBuilderLoader.php | 5 --- .../Doctrine/Form/Type/DoctrineType.php | 5 ++- .../Bridge/Doctrine/Form/Type/EntityType.php | 5 ++- .../Doctrine/Test/DoctrineTestHelper.php | 2 -- .../Constraints/UniqueEntityValidator.php | 3 +- .../AbstractPhpFileCacheWarmer.php | 3 +- .../CacheWarmer/TemplateFinder.php | 4 +-- .../Console/Descriptor/Descriptor.php | 7 ++--- .../Controller/RedirectController.php | 2 -- .../Kernel/MicroKernelTrait.php | 5 --- .../Templating/EngineInterface.php | 5 ++- .../Templating/Helper/FormHelper.php | 31 ++++++------------- .../Templating/Loader/TemplateLocator.php | 3 +- .../Security/Factory/AbstractFactory.php | 7 ++--- .../Factory/SecurityFactoryInterface.php | 9 +++--- .../EventListener/VoteListener.php | 2 -- .../Controller/ExceptionController.php | 10 +++--- .../Controller/ProfilerController.php | 9 ++---- .../Profiler/TemplateManager.php | 3 +- src/Symfony/Component/Asset/Packages.php | 6 ++-- src/Symfony/Component/Asset/PathPackage.php | 4 +-- src/Symfony/Component/Asset/UrlPackage.php | 4 +-- src/Symfony/Component/BrowserKit/Client.php | 10 ++---- .../Cache/Adapter/AbstractAdapter.php | 9 +++--- .../Cache/Adapter/RedisTagAwareAdapter.php | 1 - .../DataCollector/CacheDataCollector.php | 3 +- .../Config/Definition/Builder/TreeBuilder.php | 5 ++- .../Component/Config/Definition/Processor.php | 6 ++-- .../Config/ResourceCheckerInterface.php | 5 +-- .../CommandLoader/ContainerCommandLoader.php | 3 +- .../Descriptor/DescriptorInterface.php | 5 ++- .../Console/Descriptor/XmlDescriptor.php | 1 - .../Formatter/OutputFormatterInterface.php | 3 +- .../Console/Helper/DescriptorHelper.php | 8 ++--- .../Component/Console/Helper/HelperSet.php | 3 +- .../Console/Helper/ProcessHelper.php | 24 ++++++-------- .../Console/Helper/ProgressIndicator.php | 7 ++--- .../Component/Console/Helper/Table.php | 3 +- .../Component/Console/Input/ArgvInput.php | 3 +- .../Exception/SyntaxErrorException.php | 1 - .../CssSelector/Node/FunctionNode.php | 5 ++- src/Symfony/Component/Debug/ErrorHandler.php | 5 ++- .../FatalErrorHandlerInterface.php | 3 +- .../Compiler/AbstractRecursivePass.php | 6 ++-- .../DependencyInjection/Compiler/Compiler.php | 5 ++- .../Compiler/PassConfig.php | 5 ++- .../Compiler/ServiceLocatorTagPass.php | 5 ++- .../DependencyInjection/ContainerBuilder.php | 8 ++--- .../Instantiator/InstantiatorInterface.php | 6 ++-- .../LazyProxy/PhpDumper/DumperInterface.php | 5 ++- .../DependencyInjection/Loader/FileLoader.php | 3 +- .../ExpressionLanguage/ExpressionLanguage.php | 1 - .../Component/ExpressionLanguage/Parser.php | 3 +- src/Symfony/Component/Form/ButtonBuilder.php | 6 ++-- .../Factory/PropertyAccessDecorator.php | 6 ++-- .../Form/ChoiceList/LazyChoiceList.php | 3 +- .../Form/Extension/Csrf/CsrfExtension.php | 5 ++- .../Csrf/Type/FormTypeCsrfExtension.php | 7 ----- .../DependencyInjectionExtension.php | 5 ++- .../Validator/Constraints/FormValidator.php | 1 - .../EventListener/ValidationListener.php | 5 --- .../ViolationMapperInterface.php | 4 +-- .../Form/FormConfigBuilderInterface.php | 6 ++-- src/Symfony/Component/Form/FormError.php | 2 -- .../Component/Form/FormErrorIterator.php | 1 - src/Symfony/Component/Form/FormEvent.php | 3 +- .../Component/Form/FormFactoryInterface.php | 12 +++---- src/Symfony/Component/Form/FormInterface.php | 2 -- src/Symfony/Component/Form/FormRegistry.php | 3 +- .../Form/FormTypeExtensionInterface.php | 5 --- .../Component/Form/FormTypeInterface.php | 13 -------- .../Component/Form/PreloadedExtension.php | 1 - .../Form/RequestHandlerInterface.php | 3 +- .../Component/Form/ResolvedFormType.php | 19 ++---------- .../Form/ResolvedFormTypeFactoryInterface.php | 4 +-- .../Form/ResolvedFormTypeInterface.php | 18 +---------- .../Component/Form/Tests/AbstractFormTest.php | 7 ++--- .../Component/HttpFoundation/Request.php | 5 --- .../Storage/MockFileSessionStorage.php | 5 ++- .../Session/Storage/NativeSessionStorage.php | 1 - .../Storage/PhpBridgeSessionStorage.php | 1 - src/Symfony/Component/HttpKernel/Client.php | 5 +-- .../Controller/ArgumentResolverInterface.php | 1 - .../ArgumentValueResolverInterface.php | 6 ---- .../HttpKernel/Event/KernelEvent.php | 6 ++-- .../EventListener/DebugHandlersListener.php | 1 - .../EventListener/ExceptionListener.php | 7 ----- .../EventListener/RouterListener.php | 3 -- .../AbstractSurrogateFragmentRenderer.php | 1 - .../HttpKernel/Fragment/FragmentHandler.php | 5 ++- .../Fragment/HIncludeFragmentRenderer.php | 2 -- src/Symfony/Component/HttpKernel/Kernel.php | 6 ++-- .../Bundle/Reader/BufferedBundleReader.php | 3 +- .../Data/Generator/AbstractDataGenerator.php | 3 +- .../Intl/Data/Generator/GeneratorConfig.php | 3 +- .../Data/Provider/CurrencyDataProvider.php | 3 +- .../Data/Provider/LanguageDataProvider.php | 3 +- .../Intl/Data/Provider/LocaleDataProvider.php | 3 +- .../Intl/Data/Provider/RegionDataProvider.php | 3 +- .../Intl/Data/Provider/ScriptDataProvider.php | 3 +- .../Ldap/Adapter/EntryManagerInterface.php | 7 ----- src/Symfony/Component/Lock/Lock.php | 6 ++-- .../Component/Lock/Store/CombinedStore.php | 3 +- .../Lock/Store/RetryTillSaveStore.php | 5 ++- .../Messenger/RoutableMessageBus.php | 3 -- .../Exception/UnexpectedTypeException.php | 5 ++- .../PropertyAccess/PropertyAccessor.php | 7 ++--- .../PropertyAccessorBuilder.php | 2 -- .../PropertyAccess/PropertyPathIterator.php | 3 -- .../Extractor/PhpDocExtractor.php | 7 ++--- .../Routing/Loader/XmlFileLoader.php | 19 +++++------- .../Component/Routing/Matcher/UrlMatcher.php | 5 +-- src/Symfony/Component/Routing/Route.php | 4 --- .../Component/Routing/RouteCollection.php | 3 +- .../Routing/RouteCollectionBuilder.php | 4 +-- .../AuthenticationManagerInterface.php | 2 -- .../Provider/UserAuthenticationProvider.php | 3 +- .../Authentication/Token/RememberMeToken.php | 5 ++- .../Authentication/Token/SwitchUserToken.php | 9 +++--- .../TraceableAccessDecisionManager.php | 5 ++- .../Core/Authorization/Voter/Voter.php | 5 ++- .../Encoder/UserPasswordEncoderInterface.php | 6 ++-- .../Security/Core/Role/SwitchUserRole.php | 3 +- .../Csrf/TokenStorage/SessionTokenStorage.php | 3 +- .../Security/Guard/AuthenticatorInterface.php | 16 +++------- .../Token/PostAuthenticationGuardToken.php | 5 ++- .../DefaultAuthenticationSuccessHandler.php | 3 +- .../SimpleAuthenticationHandler.php | 6 ---- .../AuthenticationEntryPointInterface.php | 3 -- .../Component/Security/Http/HttpUtils.php | 3 +- .../Http/Logout/LogoutUrlGenerator.php | 11 +++---- .../Security/Http/ParameterBagUtils.php | 6 ++-- .../Serializer/Mapping/ClassMetadata.php | 3 +- .../Mapping/ClassMetadataInterface.php | 3 -- .../Normalizer/DenormalizerAwareInterface.php | 2 -- .../Normalizer/NormalizerAwareInterface.php | 2 -- .../Templating/Loader/CacheLoader.php | 3 +- .../Templating/Loader/ChainLoader.php | 3 +- .../Templating/Loader/FilesystemLoader.php | 3 +- .../Templating/Loader/LoaderInterface.php | 3 +- .../Component/Templating/PhpEngine.php | 10 ++---- .../Translation/Dumper/DumperInterface.php | 3 +- .../Translation/Dumper/FileDumper.php | 5 ++- .../Translation/Extractor/ChainExtractor.php | 3 +- .../Extractor/ExtractorInterface.php | 3 +- .../Translation/Extractor/PhpExtractor.php | 5 ++- .../Translation/IdentityTranslator.php | 3 -- .../Translation/Loader/XliffFileLoader.php | 4 +-- .../Translation/LoggingTranslator.php | 1 - .../Translation/Reader/TranslationReader.php | 3 +- .../Reader/TranslationReaderInterface.php | 3 +- .../Translation/Writer/TranslationWriter.php | 8 ++--- .../Writer/TranslationWriterInterface.php | 5 ++- .../ConstraintValidatorInterface.php | 5 +-- .../Validator/ConstraintViolation.php | 30 +++++++++--------- .../ConstraintViolationListInterface.php | 3 +- .../Constraints/CardSchemeValidator.php | 3 +- .../Validator/Constraints/LuhnValidator.php | 3 +- .../Validator/Context/ExecutionContext.php | 1 - .../ExecutionContextFactoryInterface.php | 5 ++- .../Context/ExecutionContextInterface.php | 9 ++---- .../Validator/Mapping/ClassMetadata.php | 11 +++---- .../RecursiveContextualValidator.php | 8 +---- .../Validator/RecursiveValidator.php | 9 +----- .../VarDumper/Cloner/AbstractCloner.php | 2 -- .../VarDumper/Cloner/DumperInterface.php | 14 +++------ .../Component/VarDumper/Dumper/CliDumper.php | 7 ++--- .../Workflow/Dumper/DumperInterface.php | 4 +-- .../Component/Workflow/Event/Event.php | 5 +-- src/Symfony/Component/Workflow/Registry.php | 1 - .../SupportStrategyInterface.php | 3 +- .../DefinitionValidatorInterface.php | 3 +- 175 files changed, 266 insertions(+), 655 deletions(-) diff --git a/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php b/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php index a25a670e80ef..a4fef5bbacce 100644 --- a/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php +++ b/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php @@ -45,8 +45,7 @@ public function __construct(ManagerRegistry $registry) /** * Adds the stack logger for a connection. * - * @param string $name - * @param DebugStack $logger + * @param string $name */ public function addLogger($name, DebugStack $logger) { diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php index 1516599c174d..7b0c73214307 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php @@ -171,8 +171,7 @@ protected function getMappingDriverBundleConfigDefaults(array $bundleConfig, \Re /** * Register all the collected mapping information with the object manager by registering the appropriate mapping drivers. * - * @param array $objectManager - * @param ContainerBuilder $container A ContainerBuilder instance + * @param array $objectManager */ protected function registerMappingDrivers($objectManager, ContainerBuilder $container) { @@ -251,8 +250,7 @@ protected function assertValidMappingConfiguration(array $mappingConfig, $object /** * Detects what metadata driver to use for the supplied directory. * - * @param string $dir A directory path - * @param ContainerBuilder $container A ContainerBuilder instance + * @param string $dir A directory path * * @return string|null A metadata driver short name, if one can be detected */ @@ -285,9 +283,8 @@ protected function detectMetadataDriver($dir, ContainerBuilder $container) /** * Loads a configured object manager metadata, query or result cache driver. * - * @param array $objectManager A configured object manager - * @param ContainerBuilder $container A ContainerBuilder instance - * @param string $cacheName + * @param array $objectManager A configured object manager + * @param string $cacheName * * @throws \InvalidArgumentException in case of unknown driver type */ @@ -299,10 +296,9 @@ protected function loadObjectManagerCacheDriver(array $objectManager, ContainerB /** * Loads a cache driver. * - * @param string $cacheName The cache driver name - * @param string $objectManagerName The object manager name - * @param array $cacheDriver The cache driver mapping - * @param ContainerBuilder $container The ContainerBuilder instance + * @param string $cacheName The cache driver name + * @param string $objectManagerName The object manager name + * @param array $cacheDriver The cache driver mapping * * @return string * diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php index cd040d12a9b0..b2810e16966f 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php @@ -40,10 +40,7 @@ class DoctrineChoiceLoader implements ChoiceLoaderInterface * passed which optimizes the object loading for one of the Doctrine * mapper implementations. * - * @param ObjectManager $manager The object manager - * @param string $class The class name of the loaded objects - * @param IdReader|null $idReader The reader for the object IDs - * @param EntityLoaderInterface|null $objectLoader The objects loader + * @param string $class The class name of the loaded objects */ public function __construct(ObjectManager $manager, string $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null) { diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php index 96f5e2f5f186..1b880e506476 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php @@ -32,11 +32,6 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface */ private $queryBuilder; - /** - * Construct an ORM Query Builder Loader. - * - * @param QueryBuilder $queryBuilder The query builder for creating the query builder - */ public function __construct(QueryBuilder $queryBuilder) { $this->queryBuilder = $queryBuilder; diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php index 88f9cf9101c7..7d8ab712204b 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php @@ -265,9 +265,8 @@ public function configureOptions(OptionsResolver $resolver) /** * Return the default loader object. * - * @param ObjectManager $manager - * @param mixed $queryBuilder - * @param string $class + * @param mixed $queryBuilder + * @param string $class * * @return EntityLoaderInterface */ diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php index ad4a3e4c70a1..9325416645f9 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php @@ -46,9 +46,8 @@ public function configureOptions(OptionsResolver $resolver) /** * Return the default loader object. * - * @param ObjectManager $manager - * @param QueryBuilder $queryBuilder - * @param string $class + * @param QueryBuilder $queryBuilder + * @param string $class * * @return ORMQueryBuilderLoader */ diff --git a/src/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.php b/src/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.php index 709b66e01bf9..090007c06980 100644 --- a/src/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.php +++ b/src/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.php @@ -31,8 +31,6 @@ class DoctrineTestHelper /** * Returns an entity manager for testing. * - * @param Configuration|null $config - * * @return EntityManager */ public static function createTestEntityManager(Configuration $config = null) diff --git a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php index cf0ed8c96210..312b84a71abc 100644 --- a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php +++ b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php @@ -34,8 +34,7 @@ public function __construct(ManagerRegistry $registry) } /** - * @param object $entity - * @param Constraint $constraint + * @param object $entity * * @throws UnexpectedTypeException * @throws ConstraintDefinitionException diff --git a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php index 28e26cb3d1b9..c44c4137df10 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php @@ -81,8 +81,7 @@ final protected function ignoreAutoloadException($class, \Exception $exception) } /** - * @param string $cacheDir - * @param ArrayAdapter $arrayAdapter + * @param string $cacheDir * * @return bool false if there is nothing to warm-up */ diff --git a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php index 6f772c84dc0d..f49e856c81aa 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php @@ -34,9 +34,7 @@ class TemplateFinder implements TemplateFinderInterface private $templates; /** - * @param KernelInterface $kernel A KernelInterface instance - * @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance - * @param string $rootDir The directory where global templates can be stored + * @param string $rootDir The directory where global templates can be stored */ public function __construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php index e454633c787d..48fc4f009828 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php @@ -133,7 +133,6 @@ abstract protected function describeContainerTags(ContainerBuilder $builder, arr * * @param Definition|Alias|object $service * @param array $options - * @param ContainerBuilder|null $builder */ abstract protected function describeContainerService($service, array $options = [], ContainerBuilder $builder = null); @@ -224,8 +223,7 @@ protected function formatParameter($value) } /** - * @param ContainerBuilder $builder - * @param string $serviceId + * @param string $serviceId * * @return mixed */ @@ -249,8 +247,7 @@ protected function resolveServiceDefinition(ContainerBuilder $builder, $serviceI } /** - * @param ContainerBuilder $builder - * @param bool $showHidden + * @param bool $showHidden * * @return array */ diff --git a/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php b/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php index d669771a59ed..91afeffa7066 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php @@ -46,7 +46,6 @@ public function __construct(UrlGeneratorInterface $router = null, int $httpPort * In case the route name is empty, the status code will be 404 when permanent is false * and 410 otherwise. * - * @param Request $request The request instance * @param string $route The route name to redirect to * @param bool $permanent Whether the redirection is permanent * @param bool|array $ignoreAttributes Whether to ignore attributes or an array of attributes to ignore @@ -88,7 +87,6 @@ public function redirectAction(Request $request, string $route, bool $permanent * In case the path is empty, the status code will be 404 when permanent is false * and 410 otherwise. * - * @param Request $request The request instance * @param string $path The absolute path or URL to redirect to * @param bool $permanent Whether the redirect is permanent or not * @param string|null $scheme The URL scheme (null to keep the current one) diff --git a/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php b/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php index 3919737e44da..b4366351c251 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php +++ b/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php @@ -29,8 +29,6 @@ trait MicroKernelTrait * * $routes->import('config/routing.yml'); * $routes->add('/admin', 'App\Controller\AdminController::dashboard', 'admin_dashboard'); - * - * @param RouteCollectionBuilder $routes */ abstract protected function configureRoutes(RouteCollectionBuilder $routes); @@ -50,9 +48,6 @@ abstract protected function configureRoutes(RouteCollectionBuilder $routes); * Or parameters: * * $c->setParameter('halloween', 'lot of fun'); - * - * @param ContainerBuilder $c - * @param LoaderInterface $loader */ abstract protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader); diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/EngineInterface.php b/src/Symfony/Bundle/FrameworkBundle/Templating/EngineInterface.php index 2539980b9d96..39aa15eb4c98 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/EngineInterface.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/EngineInterface.php @@ -28,9 +28,8 @@ interface EngineInterface extends BaseEngineInterface /** * Renders a view and returns a Response. * - * @param string $view The view name - * @param array $parameters An array of parameters to pass to the view - * @param Response $response A Response instance + * @param string $view The view name + * @param array $parameters An array of parameters to pass to the view * * @return Response A Response instance * diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php index 0956d31adaf1..fbcf5fcd6000 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php @@ -47,7 +47,6 @@ public function getName() * * The theme format is ":". * - * @param FormView $view A FormView instance * @param string|array $themes A theme or an array of theme * @param bool $useDefaultThemes If true, will use default themes defined in the renderer */ @@ -75,8 +74,7 @@ public function setTheme(FormView $view, $themes, $useDefaultThemes = true) * form individually. You can also create a custom form theme to adapt * the look of the form. * - * @param FormView $view The view for which to render the form - * @param array $variables Additional variables passed to the template + * @param array $variables Additional variables passed to the template * * @return string The HTML markup */ @@ -92,8 +90,7 @@ public function form(FormView $view, array $variables = []) * * start($form) ?>> * - * @param FormView $view The view for which to render the start tag - * @param array $variables Additional variables passed to the template + * @param array $variables Additional variables passed to the template * * @return string The HTML markup */ @@ -109,8 +106,7 @@ public function start(FormView $view, array $variables = []) * * end($form) ?>> * - * @param FormView $view The view for which to render the end tag - * @param array $variables Additional variables passed to the template + * @param array $variables Additional variables passed to the template * * @return string The HTML markup */ @@ -132,8 +128,7 @@ public function end(FormView $view, array $variables = []) * * widget($form, ['separator' => '+++++']) ?> * - * @param FormView $view The view for which to render the widget - * @param array $variables Additional variables passed to the template + * @param array $variables Additional variables passed to the template * * @return string The HTML markup */ @@ -145,8 +140,7 @@ public function widget(FormView $view, array $variables = []) /** * Renders the entire form field "row". * - * @param FormView $view The view for which to render the row - * @param array $variables Additional variables passed to the template + * @param array $variables Additional variables passed to the template * * @return string The HTML markup */ @@ -158,9 +152,8 @@ public function row(FormView $view, array $variables = []) /** * Renders the label of the given view. * - * @param FormView $view The view for which to render the label - * @param string $label The label - * @param array $variables Additional variables passed to the template + * @param string $label The label + * @param array $variables Additional variables passed to the template * * @return string The HTML markup */ @@ -176,8 +169,6 @@ public function label(FormView $view, $label = null, array $variables = []) /** * Renders the help of the given view. * - * @param FormView $view The parent view - * * @return string The HTML markup */ public function help(FormView $view): string @@ -198,8 +189,7 @@ public function errors(FormView $view) /** * Renders views which have not already been rendered. * - * @param FormView $view The parent view - * @param array $variables An array of variables + * @param array $variables An array of variables * * @return string The HTML markup */ @@ -211,9 +201,8 @@ public function rest(FormView $view, array $variables = []) /** * Renders a block of the template. * - * @param FormView $view The view for determining the used themes - * @param string $blockName The name of the block to render - * @param array $variables The variable to pass to the template + * @param string $blockName The name of the block to render + * @param array $variables The variable to pass to the template * * @return string The HTML markup */ diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php index 39ebe0e1d3d4..26f4028d363b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php @@ -31,8 +31,7 @@ class TemplateLocator implements FileLocatorInterface private $cacheHits = []; /** - * @param FileLocatorInterface $locator A FileLocatorInterface instance - * @param string $cacheDir The cache path + * @param string $cacheDir The cache path */ public function __construct(FileLocatorInterface $locator, string $cacheDir = null) { diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php index 00bb451e0ef0..3f7a51598352 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php @@ -98,10 +98,9 @@ final public function addOption($name, $default = null) * Subclasses must return the id of a service which implements the * AuthenticationProviderInterface. * - * @param ContainerBuilder $container - * @param string $id The unique id of the firewall - * @param array $config The options array for this listener - * @param string $userProviderId The id of the user provider + * @param string $id The unique id of the firewall + * @param array $config The options array for this listener + * @param string $userProviderId The id of the user provider * * @return string never null, the id of the authentication provider */ diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/SecurityFactoryInterface.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/SecurityFactoryInterface.php index 028e885246f6..027fe6586896 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/SecurityFactoryInterface.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/SecurityFactoryInterface.php @@ -24,11 +24,10 @@ interface SecurityFactoryInterface /** * Configures the container services required to use the authentication listener. * - * @param ContainerBuilder $container - * @param string $id The unique id of the firewall - * @param array $config The options array for the listener - * @param string $userProvider The service id of the user provider - * @param string $defaultEntryPoint + * @param string $id The unique id of the firewall + * @param array $config The options array for the listener + * @param string $userProvider The service id of the user provider + * @param string $defaultEntryPoint * * @return array containing three values: * - the provider id diff --git a/src/Symfony/Bundle/SecurityBundle/EventListener/VoteListener.php b/src/Symfony/Bundle/SecurityBundle/EventListener/VoteListener.php index 30956dafcfb9..4d0dbdb75785 100644 --- a/src/Symfony/Bundle/SecurityBundle/EventListener/VoteListener.php +++ b/src/Symfony/Bundle/SecurityBundle/EventListener/VoteListener.php @@ -33,8 +33,6 @@ public function __construct(TraceableAccessDecisionManager $traceableAccessDecis /** * Event dispatched by a voter during access manager decision. - * - * @param VoteEvent $event event with voter data */ public function onVoterVote(VoteEvent $event) { diff --git a/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php b/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php index f8fa000d2bc4..003bf47c4d63 100644 --- a/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php +++ b/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php @@ -36,8 +36,7 @@ class ExceptionController protected $debug; /** - * @param Environment $twig - * @param bool $debug Show error (false) or exception (true) pages by default + * @param bool $debug Show error (false) or exception (true) pages by default */ public function __construct(Environment $twig, bool $debug) { @@ -92,10 +91,9 @@ protected function getAndCleanOutputBuffering($startObLevel) } /** - * @param Request $request - * @param string $format - * @param int $code An HTTP response status code - * @param bool $showException + * @param string $format + * @param int $code An HTTP response status code + * @param bool $showException * * @return string */ diff --git a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php index a88b6ea9da3d..5dc787a70aa6 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php @@ -64,8 +64,7 @@ public function homeAction() /** * Renders a profiler panel for the given token. * - * @param Request $request The current HTTP request - * @param string $token The profiler token + * @param string $token The profiler token * * @return Response A Response instance * @@ -110,8 +109,7 @@ public function panelAction(Request $request, $token) /** * Renders the Web Debug Toolbar. * - * @param Request $request The current HTTP Request - * @param string $token The profiler token + * @param string $token The profiler token * * @return Response A Response instance * @@ -212,8 +210,7 @@ public function searchBarAction(Request $request) /** * Renders the search results. * - * @param Request $request The current HTTP Request - * @param string $token The token + * @param string $token The token * * @return Response A Response instance * diff --git a/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php b/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php index 5a33d01cd8d4..39006185cf03 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php @@ -43,8 +43,7 @@ public function __construct(Profiler $profiler, Environment $twig, array $templa /** * Gets the template name for a given panel. * - * @param Profile $profile - * @param string $panel + * @param string $panel * * @return mixed * diff --git a/src/Symfony/Component/Asset/Packages.php b/src/Symfony/Component/Asset/Packages.php index 3e82dcdcd407..49035914ed51 100644 --- a/src/Symfony/Component/Asset/Packages.php +++ b/src/Symfony/Component/Asset/Packages.php @@ -26,8 +26,7 @@ class Packages private $packages = []; /** - * @param PackageInterface $defaultPackage The default package - * @param PackageInterface[] $packages Additional packages indexed by name + * @param PackageInterface[] $packages Additional packages indexed by name */ public function __construct(PackageInterface $defaultPackage = null, array $packages = []) { @@ -46,8 +45,7 @@ public function setDefaultPackage(PackageInterface $defaultPackage) /** * Adds a package. * - * @param string $name The package name - * @param PackageInterface $package The package + * @param string $name The package name */ public function addPackage($name, PackageInterface $package) { diff --git a/src/Symfony/Component/Asset/PathPackage.php b/src/Symfony/Component/Asset/PathPackage.php index e3cc56c0f711..19141e57d6d5 100644 --- a/src/Symfony/Component/Asset/PathPackage.php +++ b/src/Symfony/Component/Asset/PathPackage.php @@ -29,9 +29,7 @@ class PathPackage extends Package private $basePath; /** - * @param string $basePath The base path to be prepended to relative paths - * @param VersionStrategyInterface $versionStrategy The version strategy - * @param ContextInterface|null $context The context + * @param string $basePath The base path to be prepended to relative paths */ public function __construct(string $basePath, VersionStrategyInterface $versionStrategy, ContextInterface $context = null) { diff --git a/src/Symfony/Component/Asset/UrlPackage.php b/src/Symfony/Component/Asset/UrlPackage.php index f76f23429ac0..10bbf8dece2e 100644 --- a/src/Symfony/Component/Asset/UrlPackage.php +++ b/src/Symfony/Component/Asset/UrlPackage.php @@ -39,9 +39,7 @@ class UrlPackage extends Package private $sslPackage; /** - * @param string|string[] $baseUrls Base asset URLs - * @param VersionStrategyInterface $versionStrategy The version strategy - * @param ContextInterface|null $context Context + * @param string|string[] $baseUrls Base asset URLs */ public function __construct($baseUrls, VersionStrategyInterface $versionStrategy, ContextInterface $context = null) { diff --git a/src/Symfony/Component/BrowserKit/Client.php b/src/Symfony/Component/BrowserKit/Client.php index 16e5a193588d..0696f845b288 100644 --- a/src/Symfony/Component/BrowserKit/Client.php +++ b/src/Symfony/Component/BrowserKit/Client.php @@ -50,9 +50,7 @@ abstract class Client private $isMainRequest = true; /** - * @param array $server The server parameters (equivalent of $_SERVER) - * @param History $history A History instance to store the browser history - * @param CookieJar $cookieJar A CookieJar instance to store the cookies + * @param array $server The server parameters (equivalent of $_SERVER) */ public function __construct(array $server = [], History $history = null, CookieJar $cookieJar = null) { @@ -309,7 +307,6 @@ public function clickLink(string $linkText): Crawler /** * Submits a form. * - * @param Form $form A Form instance * @param array $values An array of form field values * @param array $serverParameters An array of server parameters * @@ -498,8 +495,6 @@ protected function getScript($request) /** * Filters the BrowserKit request to the origin one. * - * @param Request $request The BrowserKit Request to filter - * * @return object An origin request instance */ protected function filterRequest(Request $request) @@ -706,8 +701,7 @@ protected function getAbsoluteUri($uri) /** * Makes a request from a Request object directly. * - * @param Request $request A Request instance - * @param bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload()) + * @param bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload()) * * @return Crawler */ diff --git a/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php b/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php index ed78c05b7e71..80f60e5f3efd 100644 --- a/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php @@ -99,11 +99,10 @@ static function ($deferred, $namespace, &$expiredIds) use ($getId) { * * Using ApcuAdapter makes system caches compatible with read-only filesystems. * - * @param string $namespace - * @param int $defaultLifetime - * @param string $version - * @param string $directory - * @param LoggerInterface|null $logger + * @param string $namespace + * @param int $defaultLifetime + * @param string $version + * @param string $directory * * @return AdapterInterface */ diff --git a/src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php b/src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php index 9cf0f5220a7d..94a6ce514042 100644 --- a/src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/RedisTagAwareAdapter.php @@ -71,7 +71,6 @@ class RedisTagAwareAdapter extends AbstractTagAwareAdapter * @param \Redis|\RedisArray|\RedisCluster|\Predis\Client $redisClient The redis client * @param string $namespace The default namespace * @param int $defaultLifetime The default lifetime - * @param MarshallerInterface|null $marshaller * * @throws \Symfony\Component\Cache\Exception\LogicException If phpredis with version lower than 3.1.3. */ diff --git a/src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php b/src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php index 0f708f0859d6..1ac70296fac4 100644 --- a/src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php +++ b/src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php @@ -30,8 +30,7 @@ class CacheDataCollector extends DataCollector implements LateDataCollectorInter private $instances = []; /** - * @param string $name - * @param TraceableAdapter $instance + * @param string $name */ public function addInstance($name, TraceableAdapter $instance) { diff --git a/src/Symfony/Component/Config/Definition/Builder/TreeBuilder.php b/src/Symfony/Component/Config/Definition/Builder/TreeBuilder.php index 9a3b0351d249..83f2c5991e4d 100644 --- a/src/Symfony/Component/Config/Definition/Builder/TreeBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/TreeBuilder.php @@ -37,9 +37,8 @@ public function __construct(string $name = null, string $type = 'array', NodeBui /** * Creates the root node. * - * @param string $name The name of the root node - * @param string $type The type of the root node - * @param NodeBuilder $builder A custom node builder instance + * @param string $name The name of the root node + * @param string $type The type of the root node * * @return ArrayNodeDefinition|NodeDefinition The root node (as an ArrayNodeDefinition when the type is 'array') * diff --git a/src/Symfony/Component/Config/Definition/Processor.php b/src/Symfony/Component/Config/Definition/Processor.php index b6a3434113b9..a878b90557a7 100644 --- a/src/Symfony/Component/Config/Definition/Processor.php +++ b/src/Symfony/Component/Config/Definition/Processor.php @@ -23,8 +23,7 @@ class Processor /** * Processes an array of configurations. * - * @param NodeInterface $configTree The node tree describing the configuration - * @param array $configs An array of configuration items to process + * @param array $configs An array of configuration items to process * * @return array The processed configuration */ @@ -42,8 +41,7 @@ public function process(NodeInterface $configTree, array $configs) /** * Processes an array of configurations. * - * @param ConfigurationInterface $configuration The configuration class - * @param array $configs An array of configuration items to process + * @param array $configs An array of configuration items to process * * @return array The processed configuration */ diff --git a/src/Symfony/Component/Config/ResourceCheckerInterface.php b/src/Symfony/Component/Config/ResourceCheckerInterface.php index 612d77786446..ac0d402495e7 100644 --- a/src/Symfony/Component/Config/ResourceCheckerInterface.php +++ b/src/Symfony/Component/Config/ResourceCheckerInterface.php @@ -30,8 +30,6 @@ interface ResourceCheckerInterface * Queries the ResourceChecker whether it can validate a given * resource or not. * - * @param ResourceInterface $metadata The resource to be checked for freshness - * * @return bool True if the ResourceChecker can handle this resource type, false if not */ public function supports(ResourceInterface $metadata); @@ -39,8 +37,7 @@ public function supports(ResourceInterface $metadata); /** * Validates the resource. * - * @param ResourceInterface $resource The resource to be validated - * @param int $timestamp The timestamp at which the cache associated with this resource was created + * @param int $timestamp The timestamp at which the cache associated with this resource was created * * @return bool True if the resource has not changed since the given timestamp, false otherwise */ diff --git a/src/Symfony/Component/Console/CommandLoader/ContainerCommandLoader.php b/src/Symfony/Component/Console/CommandLoader/ContainerCommandLoader.php index 8000c7d5eca8..50e5950a4d6d 100644 --- a/src/Symfony/Component/Console/CommandLoader/ContainerCommandLoader.php +++ b/src/Symfony/Component/Console/CommandLoader/ContainerCommandLoader.php @@ -25,8 +25,7 @@ class ContainerCommandLoader implements CommandLoaderInterface private $commandMap; /** - * @param ContainerInterface $container A container from which to load command services - * @param array $commandMap An array with command names as keys and service ids as values + * @param array $commandMap An array with command names as keys and service ids as values */ public function __construct(ContainerInterface $container, array $commandMap) { diff --git a/src/Symfony/Component/Console/Descriptor/DescriptorInterface.php b/src/Symfony/Component/Console/Descriptor/DescriptorInterface.php index fbc07df879ab..871093851c2b 100644 --- a/src/Symfony/Component/Console/Descriptor/DescriptorInterface.php +++ b/src/Symfony/Component/Console/Descriptor/DescriptorInterface.php @@ -23,9 +23,8 @@ interface DescriptorInterface /** * Describes an object if supported. * - * @param OutputInterface $output - * @param object $object - * @param array $options + * @param object $object + * @param array $options */ public function describe(OutputInterface $output, $object, array $options = []); } diff --git a/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php b/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php index 18647153210e..1a5d3cc31afe 100644 --- a/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php +++ b/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php @@ -81,7 +81,6 @@ public function getCommandDocument(Command $command) } /** - * @param Application $application * @param string|null $namespace * * @return \DOMDocument diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php b/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php index 281e240c5f70..22f40a34edcc 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php @@ -35,8 +35,7 @@ public function isDecorated(); /** * Sets a new style. * - * @param string $name The style name - * @param OutputFormatterStyleInterface $style The style instance + * @param string $name The style name */ public function setStyle($name, OutputFormatterStyleInterface $style); diff --git a/src/Symfony/Component/Console/Helper/DescriptorHelper.php b/src/Symfony/Component/Console/Helper/DescriptorHelper.php index f8a3847b49c6..8859eb131842 100644 --- a/src/Symfony/Component/Console/Helper/DescriptorHelper.php +++ b/src/Symfony/Component/Console/Helper/DescriptorHelper.php @@ -48,9 +48,8 @@ public function __construct() * * format: string, the output format name * * raw_text: boolean, sets output type as raw * - * @param OutputInterface $output - * @param object $object - * @param array $options + * @param object $object + * @param array $options * * @throws InvalidArgumentException when the given format is not supported */ @@ -72,8 +71,7 @@ public function describe(OutputInterface $output, $object, array $options = []) /** * Registers a descriptor. * - * @param string $format - * @param DescriptorInterface $descriptor + * @param string $format * * @return $this */ diff --git a/src/Symfony/Component/Console/Helper/HelperSet.php b/src/Symfony/Component/Console/Helper/HelperSet.php index c73fecd4751e..d9d73f25fc69 100644 --- a/src/Symfony/Component/Console/Helper/HelperSet.php +++ b/src/Symfony/Component/Console/Helper/HelperSet.php @@ -40,8 +40,7 @@ public function __construct(array $helpers = []) /** * Sets a helper. * - * @param HelperInterface $helper The helper instance - * @param string $alias An alias + * @param string $alias An alias */ public function set(HelperInterface $helper, $alias = null) { diff --git a/src/Symfony/Component/Console/Helper/ProcessHelper.php b/src/Symfony/Component/Console/Helper/ProcessHelper.php index e7e5bd7aef1d..5b14ef48f000 100644 --- a/src/Symfony/Component/Console/Helper/ProcessHelper.php +++ b/src/Symfony/Component/Console/Helper/ProcessHelper.php @@ -28,12 +28,11 @@ class ProcessHelper extends Helper /** * Runs an external process. * - * @param OutputInterface $output An OutputInterface instance - * @param array|Process $cmd An instance of Process or an array of the command and arguments - * @param string|null $error An error message that must be displayed if something went wrong - * @param callable|null $callback A PHP callback to run whenever there is some - * output available on STDOUT or STDERR - * @param int $verbosity The threshold for verbosity + * @param array|Process $cmd An instance of Process or an array of the command and arguments + * @param string|null $error An error message that must be displayed if something went wrong + * @param callable|null $callback A PHP callback to run whenever there is some + * output available on STDOUT or STDERR + * @param int $verbosity The threshold for verbosity * * @return Process The process that ran */ @@ -92,11 +91,10 @@ public function run(OutputInterface $output, $cmd, $error = null, callable $call * This is identical to run() except that an exception is thrown if the process * exits with a non-zero exit code. * - * @param OutputInterface $output An OutputInterface instance - * @param string|Process $cmd An instance of Process or a command to run - * @param string|null $error An error message that must be displayed if something went wrong - * @param callable|null $callback A PHP callback to run whenever there is some - * output available on STDOUT or STDERR + * @param string|Process $cmd An instance of Process or a command to run + * @param string|null $error An error message that must be displayed if something went wrong + * @param callable|null $callback A PHP callback to run whenever there is some + * output available on STDOUT or STDERR * * @return Process The process that ran * @@ -118,10 +116,6 @@ public function mustRun(OutputInterface $output, $cmd, $error = null, callable $ /** * Wraps a Process callback to add debugging output. * - * @param OutputInterface $output An OutputInterface interface - * @param Process $process The Process - * @param callable|null $callback A PHP callable - * * @return callable */ public function wrapCallback(OutputInterface $output, Process $process, callable $callback = null) diff --git a/src/Symfony/Component/Console/Helper/ProgressIndicator.php b/src/Symfony/Component/Console/Helper/ProgressIndicator.php index 9a0163739178..658924b6d9b4 100644 --- a/src/Symfony/Component/Console/Helper/ProgressIndicator.php +++ b/src/Symfony/Component/Console/Helper/ProgressIndicator.php @@ -34,10 +34,9 @@ class ProgressIndicator private static $formats; /** - * @param OutputInterface $output - * @param string|null $format Indicator format - * @param int $indicatorChangeInterval Change interval in milliseconds - * @param array|null $indicatorValues Animated indicator characters + * @param string|null $format Indicator format + * @param int $indicatorChangeInterval Change interval in milliseconds + * @param array|null $indicatorValues Animated indicator characters */ public function __construct(OutputInterface $output, string $format = null, int $indicatorChangeInterval = 100, array $indicatorValues = null) { diff --git a/src/Symfony/Component/Console/Helper/Table.php b/src/Symfony/Component/Console/Helper/Table.php index d866e5903494..55fa9ac0aed3 100644 --- a/src/Symfony/Component/Console/Helper/Table.php +++ b/src/Symfony/Component/Console/Helper/Table.php @@ -102,8 +102,7 @@ public function __construct(OutputInterface $output) /** * Sets a style definition. * - * @param string $name The style name - * @param TableStyle $style A TableStyle instance + * @param string $name The style name */ public static function setStyleDefinition($name, TableStyle $style) { diff --git a/src/Symfony/Component/Console/Input/ArgvInput.php b/src/Symfony/Component/Console/Input/ArgvInput.php index cc4f2e8b3132..618e10e12a75 100644 --- a/src/Symfony/Component/Console/Input/ArgvInput.php +++ b/src/Symfony/Component/Console/Input/ArgvInput.php @@ -44,8 +44,7 @@ class ArgvInput extends Input private $parsed; /** - * @param array|null $argv An array of parameters from the CLI (in the argv format) - * @param InputDefinition|null $definition A InputDefinition instance + * @param array|null $argv An array of parameters from the CLI (in the argv format) */ public function __construct(array $argv = null, InputDefinition $definition = null) { diff --git a/src/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php b/src/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php index cb3158a5536d..1200c979ea6a 100644 --- a/src/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php +++ b/src/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php @@ -25,7 +25,6 @@ class SyntaxErrorException extends ParseException { /** * @param string $expectedValue - * @param Token $foundToken * * @return self */ diff --git a/src/Symfony/Component/CssSelector/Node/FunctionNode.php b/src/Symfony/Component/CssSelector/Node/FunctionNode.php index 063f8a27892a..c3fa245d4a99 100644 --- a/src/Symfony/Component/CssSelector/Node/FunctionNode.php +++ b/src/Symfony/Component/CssSelector/Node/FunctionNode.php @@ -30,9 +30,8 @@ class FunctionNode extends AbstractNode private $arguments; /** - * @param NodeInterface $selector - * @param string $name - * @param Token[] $arguments + * @param string $name + * @param Token[] $arguments */ public function __construct(NodeInterface $selector, string $name, array $arguments = []) { diff --git a/src/Symfony/Component/Debug/ErrorHandler.php b/src/Symfony/Component/Debug/ErrorHandler.php index fa1673cf57ff..401515954540 100644 --- a/src/Symfony/Component/Debug/ErrorHandler.php +++ b/src/Symfony/Component/Debug/ErrorHandler.php @@ -176,9 +176,8 @@ public function __construct(BufferingLogger $bootstrappingLogger = null) /** * Sets a logger to non assigned errors levels. * - * @param LoggerInterface $logger A PSR-3 logger to put as default for the given levels - * @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants - * @param bool $replace Whether to replace or not any existing logger + * @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants + * @param bool $replace Whether to replace or not any existing logger */ public function setDefaultLogger(LoggerInterface $logger, $levels = E_ALL, $replace = false) { diff --git a/src/Symfony/Component/Debug/FatalErrorHandler/FatalErrorHandlerInterface.php b/src/Symfony/Component/Debug/FatalErrorHandler/FatalErrorHandlerInterface.php index a1c4a8ce547c..fbf2ae00a60d 100644 --- a/src/Symfony/Component/Debug/FatalErrorHandler/FatalErrorHandlerInterface.php +++ b/src/Symfony/Component/Debug/FatalErrorHandler/FatalErrorHandlerInterface.php @@ -27,8 +27,7 @@ interface FatalErrorHandlerInterface /** * Attempts to convert an error into an exception. * - * @param array $error An array as returned by error_get_last() - * @param FatalErrorException $exception A FatalErrorException instance + * @param array $error An array as returned by error_get_last() * * @return FatalErrorException|null A FatalErrorException instance if the class is able to convert the error, null otherwise */ diff --git a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php index 89857f78a814..eab5a6ec87b9 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php @@ -105,8 +105,7 @@ protected function processValue($value, $isRoot = false) } /** - * @param Definition $definition - * @param bool $required + * @param bool $required * * @return \ReflectionFunctionAbstract|null * @@ -161,8 +160,7 @@ protected function getConstructor(Definition $definition, $required) } /** - * @param Definition $definition - * @param string $method + * @param string $method * * @throws RuntimeException * diff --git a/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php b/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php index 58c6e81a049d..14dedf007b09 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php @@ -54,9 +54,8 @@ public function getServiceReferenceGraph() /** * Adds a pass to the PassConfig. * - * @param CompilerPassInterface $pass A compiler pass - * @param string $type The type of the pass - * @param int $priority Used to sort the passes + * @param string $type The type of the pass + * @param int $priority Used to sort the passes */ public function addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority = 0) { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php b/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php index 9d95bb47e4df..45fbf238d74f 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php @@ -113,9 +113,8 @@ public function getPasses() /** * Adds a pass. * - * @param CompilerPassInterface $pass A Compiler pass - * @param string $type The pass type - * @param int $priority Used to sort the passes + * @param string $type The pass type + * @param int $priority Used to sort the passes * * @throws InvalidArgumentException when a pass type doesn't exist */ diff --git a/src/Symfony/Component/DependencyInjection/Compiler/ServiceLocatorTagPass.php b/src/Symfony/Component/DependencyInjection/Compiler/ServiceLocatorTagPass.php index a41f6905cf0e..96d4bbe0f4a5 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/ServiceLocatorTagPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/ServiceLocatorTagPass.php @@ -87,9 +87,8 @@ protected function processValue($value, $isRoot = false) } /** - * @param ContainerBuilder $container - * @param Reference[] $refMap - * @param string|null $callerId + * @param Reference[] $refMap + * @param string|null $callerId * * @return Reference */ diff --git a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php index 3738d98a38e3..2523362450a6 100644 --- a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php +++ b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php @@ -446,9 +446,8 @@ public function loadFromExtension($extension, array $values = null) /** * Adds a compiler pass. * - * @param CompilerPassInterface $pass A compiler pass - * @param string $type The type of compiler pass - * @param int $priority Used to sort the passes + * @param string $type The type of compiler pass + * @param int $priority Used to sort the passes * * @return $this */ @@ -974,8 +973,7 @@ public function getDefinitions() /** * Sets a service definition. * - * @param string $id The service identifier - * @param Definition $definition A Definition instance + * @param string $id The service identifier * * @return Definition the service definition * diff --git a/src/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/InstantiatorInterface.php b/src/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/InstantiatorInterface.php index 417ab908a39c..96104e4ad66a 100644 --- a/src/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/InstantiatorInterface.php +++ b/src/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/InstantiatorInterface.php @@ -25,10 +25,8 @@ interface InstantiatorInterface /** * Instantiates a proxy object. * - * @param ContainerInterface $container The container from which the service is being requested - * @param Definition $definition The definition of the requested service - * @param string $id Identifier of the requested service - * @param callable $realInstantiator Zero-argument callback that is capable of producing the real service instance + * @param string $id Identifier of the requested service + * @param callable $realInstantiator Zero-argument callback that is capable of producing the real service instance * * @return object */ diff --git a/src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/DumperInterface.php b/src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/DumperInterface.php index 60787b774344..f592e6cf196c 100644 --- a/src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/DumperInterface.php +++ b/src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/DumperInterface.php @@ -30,9 +30,8 @@ public function isProxyCandidate(Definition $definition); /** * Generates the code to be used to instantiate a proxy in the dumped factory code. * - * @param Definition $definition - * @param string $id Service identifier - * @param string $factoryCode The code to execute to create the service + * @param string $id Service identifier + * @param string $factoryCode The code to execute to create the service * * @return string */ diff --git a/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php b/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php index 35af9937bc56..cb204164857c 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php @@ -86,8 +86,7 @@ public function registerClasses(Definition $prototype, $namespace, $resource, $e /** * Registers a definition in the container with its instanceof-conditionals. * - * @param string $id - * @param Definition $definition + * @param string $id */ protected function setDefinition($id, Definition $definition) { diff --git a/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php b/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php index 51a01689a678..a257ec796969 100644 --- a/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php +++ b/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php @@ -29,7 +29,6 @@ class ExpressionLanguage protected $functions = []; /** - * @param CacheItemPoolInterface $cache * @param ExpressionFunctionProviderInterface[] $providers */ public function __construct(CacheItemPoolInterface $cache = null, array $providers = []) diff --git a/src/Symfony/Component/ExpressionLanguage/Parser.php b/src/Symfony/Component/ExpressionLanguage/Parser.php index 0930bac2eff9..59c4d67d781c 100644 --- a/src/Symfony/Component/ExpressionLanguage/Parser.php +++ b/src/Symfony/Component/ExpressionLanguage/Parser.php @@ -85,8 +85,7 @@ public function __construct(array $functions) * variable 'container' can be used in the expression * but the compiled code will use 'this'. * - * @param TokenStream $stream A token stream instance - * @param array $names An array of valid names + * @param array $names An array of valid names * * @return Node\Node A node tree * diff --git a/src/Symfony/Component/Form/ButtonBuilder.php b/src/Symfony/Component/Form/ButtonBuilder.php index 33bbbdc36de5..57aeed8f690b 100644 --- a/src/Symfony/Component/Form/ButtonBuilder.php +++ b/src/Symfony/Component/Form/ButtonBuilder.php @@ -191,8 +191,7 @@ public function addEventSubscriber(EventSubscriberInterface $subscriber) * * This method should not be invoked. * - * @param DataTransformerInterface $viewTransformer - * @param bool $forcePrepend + * @param bool $forcePrepend * * @throws BadMethodCallException */ @@ -218,8 +217,7 @@ public function resetViewTransformers() * * This method should not be invoked. * - * @param DataTransformerInterface $modelTransformer - * @param bool $forceAppend + * @param bool $forceAppend * * @throws BadMethodCallException */ diff --git a/src/Symfony/Component/Form/ChoiceList/Factory/PropertyAccessDecorator.php b/src/Symfony/Component/Form/ChoiceList/Factory/PropertyAccessDecorator.php index 78c25c7399d3..14be2a7a2ef4 100644 --- a/src/Symfony/Component/Form/ChoiceList/Factory/PropertyAccessDecorator.php +++ b/src/Symfony/Component/Form/ChoiceList/Factory/PropertyAccessDecorator.php @@ -90,9 +90,8 @@ public function createListFromChoices($choices, $value = null) /** * {@inheritdoc} * - * @param ChoiceLoaderInterface $loader The choice loader - * @param callable|string|PropertyPath|null $value The callable or path for - * generating the choice values + * @param callable|string|PropertyPath|null $value The callable or path for + * generating the choice values * * @return ChoiceListInterface The choice list */ @@ -121,7 +120,6 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul /** * {@inheritdoc} * - * @param ChoiceListInterface $list The choice list * @param array|callable|string|PropertyPath|null $preferredChoices The preferred choices * @param callable|string|PropertyPath|null $label The callable or path generating the choice labels * @param callable|string|PropertyPath|null $index The callable or path generating the view indices diff --git a/src/Symfony/Component/Form/ChoiceList/LazyChoiceList.php b/src/Symfony/Component/Form/ChoiceList/LazyChoiceList.php index b1a671d0c65e..ab4c103e849d 100644 --- a/src/Symfony/Component/Form/ChoiceList/LazyChoiceList.php +++ b/src/Symfony/Component/Form/ChoiceList/LazyChoiceList.php @@ -45,8 +45,7 @@ class LazyChoiceList implements ChoiceListInterface * The callable receives the choice as first and the array key as the second * argument. * - * @param ChoiceLoaderInterface $loader The choice loader - * @param callable|null $value The callable generating the choice values + * @param callable|null $value The callable generating the choice values */ public function __construct(ChoiceLoaderInterface $loader, callable $value = null) { diff --git a/src/Symfony/Component/Form/Extension/Csrf/CsrfExtension.php b/src/Symfony/Component/Form/Extension/Csrf/CsrfExtension.php index 502316e257c4..efd403ca9f68 100644 --- a/src/Symfony/Component/Form/Extension/Csrf/CsrfExtension.php +++ b/src/Symfony/Component/Form/Extension/Csrf/CsrfExtension.php @@ -28,9 +28,8 @@ class CsrfExtension extends AbstractExtension private $translationDomain; /** - * @param CsrfTokenManagerInterface $tokenManager The CSRF token manager - * @param TranslatorInterface|null $translator The translator for translating error messages - * @param string|null $translationDomain The translation domain for translating + * @param TranslatorInterface|null $translator The translator for translating error messages + * @param string|null $translationDomain The translation domain for translating */ public function __construct(CsrfTokenManagerInterface $tokenManager, $translator = null, string $translationDomain = null) { diff --git a/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php b/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php index 5e5f26ff7479..2f3fa437f6dd 100644 --- a/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php +++ b/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php @@ -53,9 +53,6 @@ public function __construct(CsrfTokenManagerInterface $defaultTokenManager, bool /** * Adds a CSRF field to the form when the CSRF protection is enabled. - * - * @param FormBuilderInterface $builder The form builder - * @param array $options The options */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -78,10 +75,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) /** * Adds a CSRF field to the root form view. - * - * @param FormView $view The form view - * @param FormInterface $form The form - * @param array $options The options */ public function finishView(FormView $view, FormInterface $form, array $options) { diff --git a/src/Symfony/Component/Form/Extension/DependencyInjection/DependencyInjectionExtension.php b/src/Symfony/Component/Form/Extension/DependencyInjection/DependencyInjectionExtension.php index a0a82495bde5..3a689a61c8e1 100644 --- a/src/Symfony/Component/Form/Extension/DependencyInjection/DependencyInjectionExtension.php +++ b/src/Symfony/Component/Form/Extension/DependencyInjection/DependencyInjectionExtension.php @@ -25,9 +25,8 @@ class DependencyInjectionExtension implements FormExtensionInterface private $guesserServices; /** - * @param ContainerInterface $typeContainer - * @param iterable[] $typeExtensionServices - * @param iterable $guesserServices + * @param iterable[] $typeExtensionServices + * @param iterable $guesserServices */ public function __construct(ContainerInterface $typeContainer, array $typeExtensionServices, iterable $guesserServices) { diff --git a/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php b/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php index 4947c994faa5..05a2d8bca7e4 100644 --- a/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php +++ b/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php @@ -187,7 +187,6 @@ private static function getValidationGroups(FormInterface $form) * Post-processes the validation groups option for a given form. * * @param string|GroupSequence|(string|GroupSequence)[]|callable $groups The validation groups - * @param FormInterface $form The validated form * * @return (string|GroupSequence)[] The validation groups */ diff --git a/src/Symfony/Component/Form/Extension/Validator/EventListener/ValidationListener.php b/src/Symfony/Component/Form/Extension/Validator/EventListener/ValidationListener.php index 80c94dc66e4d..b9cc33425617 100644 --- a/src/Symfony/Component/Form/Extension/Validator/EventListener/ValidationListener.php +++ b/src/Symfony/Component/Form/Extension/Validator/EventListener/ValidationListener.php @@ -41,11 +41,6 @@ public function __construct(ValidatorInterface $validator, ViolationMapperInterf $this->violationMapper = $violationMapper; } - /** - * Validates the form and its domain object. - * - * @param FormEvent $event The event object - */ public function validateForm(FormEvent $event) { $form = $event->getForm(); diff --git a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapperInterface.php b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapperInterface.php index 49b7076b528f..b17abc2cc183 100644 --- a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapperInterface.php +++ b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapperInterface.php @@ -23,9 +23,7 @@ interface ViolationMapperInterface * Maps a constraint violation to a form in the form tree under * the given form. * - * @param ConstraintViolation $violation The violation to map - * @param FormInterface $form The root form of the tree to map it to - * @param bool $allowNonSynchronized Whether to allow mapping to non-synchronized forms + * @param bool $allowNonSynchronized Whether to allow mapping to non-synchronized forms */ public function mapViolation(ConstraintViolation $violation, FormInterface $form, $allowNonSynchronized = false); } diff --git a/src/Symfony/Component/Form/FormConfigBuilderInterface.php b/src/Symfony/Component/Form/FormConfigBuilderInterface.php index d516e41056ec..59da9520ba10 100644 --- a/src/Symfony/Component/Form/FormConfigBuilderInterface.php +++ b/src/Symfony/Component/Form/FormConfigBuilderInterface.php @@ -47,8 +47,7 @@ public function addEventSubscriber(EventSubscriberInterface $subscriber); * The reverseTransform method of the transformer is used to convert from the * view to the normalized format. * - * @param DataTransformerInterface $viewTransformer - * @param bool $forcePrepend If set to true, prepend instead of appending + * @param bool $forcePrepend If set to true, prepend instead of appending * * @return $this The configuration object */ @@ -69,8 +68,7 @@ public function resetViewTransformers(); * The reverseTransform method of the transformer is used to convert from the * normalized to the model format. * - * @param DataTransformerInterface $modelTransformer - * @param bool $forceAppend If set to true, append instead of prepending + * @param bool $forceAppend If set to true, append instead of prepending * * @return $this The configuration object */ diff --git a/src/Symfony/Component/Form/FormError.php b/src/Symfony/Component/Form/FormError.php index 899631257b1e..63a40ca5ac46 100644 --- a/src/Symfony/Component/Form/FormError.php +++ b/src/Symfony/Component/Form/FormError.php @@ -116,8 +116,6 @@ public function getCause() * * This method must only be called once. * - * @param FormInterface $origin The form that caused this error - * * @throws BadMethodCallException If the method is called more than once */ public function setOrigin(FormInterface $origin) diff --git a/src/Symfony/Component/Form/FormErrorIterator.php b/src/Symfony/Component/Form/FormErrorIterator.php index c91bbee3f373..86aa26fbfd59 100644 --- a/src/Symfony/Component/Form/FormErrorIterator.php +++ b/src/Symfony/Component/Form/FormErrorIterator.php @@ -39,7 +39,6 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array private $errors; /** - * @param FormInterface $form The erroneous form * @param FormError[]|self[] $errors An array of form errors and instances * of FormErrorIterator * diff --git a/src/Symfony/Component/Form/FormEvent.php b/src/Symfony/Component/Form/FormEvent.php index 3b6d484e7580..447774606519 100644 --- a/src/Symfony/Component/Form/FormEvent.php +++ b/src/Symfony/Component/Form/FormEvent.php @@ -22,8 +22,7 @@ class FormEvent extends Event protected $data; /** - * @param FormInterface $form The associated form - * @param mixed $data The data + * @param mixed $data The data */ public function __construct(FormInterface $form, $data) { diff --git a/src/Symfony/Component/Form/FormFactoryInterface.php b/src/Symfony/Component/Form/FormFactoryInterface.php index 74d4ba2bba28..5719962724c3 100644 --- a/src/Symfony/Component/Form/FormFactoryInterface.php +++ b/src/Symfony/Component/Form/FormFactoryInterface.php @@ -23,9 +23,8 @@ interface FormFactoryInterface * * @see createBuilder() * - * @param string $type The type of the form - * @param mixed $data The initial data - * @param array $options The options + * @param string $type The type of the form + * @param mixed $data The initial data * * @return FormInterface The form named after the type * @@ -56,7 +55,6 @@ public function createNamed($name, $type = 'Symfony\Component\Form\Extension\Cor * @param string $class The fully qualified class name * @param string $property The name of the property to guess for * @param mixed $data The initial data - * @param array $options The options for the builder * * @return FormInterface The form named after the property * @@ -67,9 +65,8 @@ public function createForProperty($class, $property, $data = null, array $option /** * Returns a form builder. * - * @param string $type The type of the form - * @param mixed $data The initial data - * @param array $options The options + * @param string $type The type of the form + * @param mixed $data The initial data * * @return FormBuilderInterface The form builder * @@ -99,7 +96,6 @@ public function createNamedBuilder($name, $type = 'Symfony\Component\Form\Extens * @param string $class The fully qualified class name * @param string $property The name of the property to guess for * @param mixed $data The initial data - * @param array $options The options for the builder * * @return FormBuilderInterface The form builder named after the property * diff --git a/src/Symfony/Component/Form/FormInterface.php b/src/Symfony/Component/Form/FormInterface.php index da3cba51b962..9be500818274 100644 --- a/src/Symfony/Component/Form/FormInterface.php +++ b/src/Symfony/Component/Form/FormInterface.php @@ -208,8 +208,6 @@ public function getPropertyPath(); /** * Adds an error to this form. * - * @param FormError $error - * * @return $this */ public function addError(FormError $error); diff --git a/src/Symfony/Component/Form/FormRegistry.php b/src/Symfony/Component/Form/FormRegistry.php index 9189b811e7d0..8583054c2068 100644 --- a/src/Symfony/Component/Form/FormRegistry.php +++ b/src/Symfony/Component/Form/FormRegistry.php @@ -48,8 +48,7 @@ class FormRegistry implements FormRegistryInterface private $checkedTypes = []; /** - * @param FormExtensionInterface[] $extensions An array of FormExtensionInterface - * @param ResolvedFormTypeFactoryInterface $resolvedTypeFactory The factory for resolved form types + * @param FormExtensionInterface[] $extensions An array of FormExtensionInterface * * @throws UnexpectedTypeException if any extension does not implement FormExtensionInterface */ diff --git a/src/Symfony/Component/Form/FormTypeExtensionInterface.php b/src/Symfony/Component/Form/FormTypeExtensionInterface.php index fd842f8cfc7c..109cd7183b9e 100644 --- a/src/Symfony/Component/Form/FormTypeExtensionInterface.php +++ b/src/Symfony/Component/Form/FormTypeExtensionInterface.php @@ -50,11 +50,6 @@ public function buildView(FormView $view, FormInterface $form, array $options); */ public function finishView(FormView $view, FormInterface $form, array $options); - /** - * Configures the options for this type. - * - * @param OptionsResolver $resolver The resolver for the options - */ public function configureOptions(OptionsResolver $resolver); /** diff --git a/src/Symfony/Component/Form/FormTypeInterface.php b/src/Symfony/Component/Form/FormTypeInterface.php index 1e80f477ca6b..6850d5496810 100644 --- a/src/Symfony/Component/Form/FormTypeInterface.php +++ b/src/Symfony/Component/Form/FormTypeInterface.php @@ -25,9 +25,6 @@ interface FormTypeInterface * top most type. Type extensions can further modify the form. * * @see FormTypeExtensionInterface::buildForm() - * - * @param FormBuilderInterface $builder The form builder - * @param array $options The options */ public function buildForm(FormBuilderInterface $builder, array $options); @@ -42,10 +39,6 @@ public function buildForm(FormBuilderInterface $builder, array $options); * to do so, move your logic to {@link finishView()} instead. * * @see FormTypeExtensionInterface::buildView() - * - * @param FormView $view The view - * @param FormInterface $form The form - * @param array $options The options */ public function buildView(FormView $view, FormInterface $form, array $options); @@ -61,17 +54,11 @@ public function buildView(FormView $view, FormInterface $form, array $options); * else you are recommended to implement {@link buildView()} instead. * * @see FormTypeExtensionInterface::finishView() - * - * @param FormView $view The view - * @param FormInterface $form The form - * @param array $options The options */ public function finishView(FormView $view, FormInterface $form, array $options); /** * Configures the options for this type. - * - * @param OptionsResolver $resolver The resolver for the options */ public function configureOptions(OptionsResolver $resolver); diff --git a/src/Symfony/Component/Form/PreloadedExtension.php b/src/Symfony/Component/Form/PreloadedExtension.php index 1e3f364831e9..2f1cc2377f8e 100644 --- a/src/Symfony/Component/Form/PreloadedExtension.php +++ b/src/Symfony/Component/Form/PreloadedExtension.php @@ -29,7 +29,6 @@ class PreloadedExtension implements FormExtensionInterface * * @param FormTypeInterface[] $types The types that the extension should support * @param FormTypeExtensionInterface[][] $typeExtensions The type extensions that the extension should support - * @param FormTypeGuesserInterface|null $typeGuesser The guesser that the extension should support */ public function __construct(array $types, array $typeExtensions, FormTypeGuesserInterface $typeGuesser = null) { diff --git a/src/Symfony/Component/Form/RequestHandlerInterface.php b/src/Symfony/Component/Form/RequestHandlerInterface.php index 3d7b45d5064a..65d86e224679 100644 --- a/src/Symfony/Component/Form/RequestHandlerInterface.php +++ b/src/Symfony/Component/Form/RequestHandlerInterface.php @@ -21,8 +21,7 @@ interface RequestHandlerInterface /** * Submits a form if it was submitted. * - * @param FormInterface $form The form to submit - * @param mixed $request The current request + * @param mixed $request The current request */ public function handleRequest(FormInterface $form, $request = null); diff --git a/src/Symfony/Component/Form/ResolvedFormType.php b/src/Symfony/Component/Form/ResolvedFormType.php index d7ab90ff1830..6b3fb6837edc 100644 --- a/src/Symfony/Component/Form/ResolvedFormType.php +++ b/src/Symfony/Component/Form/ResolvedFormType.php @@ -118,9 +118,6 @@ public function createView(FormInterface $form, FormView $parent = null) /** * Configures a form builder for the type hierarchy. - * - * @param FormBuilderInterface $builder The builder to configure - * @param array $options The options used for the configuration */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -139,10 +136,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) * Configures a form view for the type hierarchy. * * This method is called before the children of the view are built. - * - * @param FormView $view The form view to configure - * @param FormInterface $form The form corresponding to the view - * @param array $options The options used for the configuration */ public function buildView(FormView $view, FormInterface $form, array $options) { @@ -161,10 +154,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) * Finishes a form view for the type hierarchy. * * This method is called after the children of the view have been built. - * - * @param FormView $view The form view to configure - * @param FormInterface $form The form corresponding to the view - * @param array $options The options used for the configuration */ public function finishView(FormView $view, FormInterface $form, array $options) { @@ -209,10 +198,8 @@ public function getOptionsResolver() * * Override this method if you want to customize the builder class. * - * @param string $name The name of the builder - * @param string|null $dataClass The data class - * @param FormFactoryInterface $factory The current form factory - * @param array $options The builder options + * @param string $name The name of the builder + * @param string|null $dataClass The data class * * @return FormBuilderInterface The new builder instance */ @@ -234,8 +221,6 @@ protected function newBuilder($name, $dataClass, FormFactoryInterface $factory, * * Override this method if you want to customize the view class. * - * @param FormView|null $parent The parent view, if available - * * @return FormView A new view instance */ protected function newView(FormView $parent = null) diff --git a/src/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php b/src/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php index 3240d77f4f3b..9b20b440277e 100644 --- a/src/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php +++ b/src/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php @@ -25,9 +25,7 @@ interface ResolvedFormTypeFactoryInterface /** * Resolves a form type. * - * @param FormTypeInterface $type - * @param FormTypeExtensionInterface[] $typeExtensions - * @param ResolvedFormTypeInterface|null $parent + * @param FormTypeExtensionInterface[] $typeExtensions * * @return ResolvedFormTypeInterface * diff --git a/src/Symfony/Component/Form/ResolvedFormTypeInterface.php b/src/Symfony/Component/Form/ResolvedFormTypeInterface.php index c4ab1d647780..e38d160285ab 100644 --- a/src/Symfony/Component/Form/ResolvedFormTypeInterface.php +++ b/src/Symfony/Component/Form/ResolvedFormTypeInterface.php @@ -51,9 +51,7 @@ public function getTypeExtensions(); /** * Creates a new form builder for this type. * - * @param FormFactoryInterface $factory The form factory - * @param string $name The name for the builder - * @param array $options The builder options + * @param string $name The name for the builder * * @return FormBuilderInterface The created form builder */ @@ -62,18 +60,12 @@ public function createBuilder(FormFactoryInterface $factory, $name, array $optio /** * Creates a new form view for a form of this type. * - * @param FormInterface $form The form to create a view for - * @param FormView $parent The parent view or null - * * @return FormView The created form view */ public function createView(FormInterface $form, FormView $parent = null); /** * Configures a form builder for the type hierarchy. - * - * @param FormBuilderInterface $builder The builder to configure - * @param array $options The options used for the configuration */ public function buildForm(FormBuilderInterface $builder, array $options); @@ -81,10 +73,6 @@ public function buildForm(FormBuilderInterface $builder, array $options); * Configures a form view for the type hierarchy. * * It is called before the children of the view are built. - * - * @param FormView $view The form view to configure - * @param FormInterface $form The form corresponding to the view - * @param array $options The options used for the configuration */ public function buildView(FormView $view, FormInterface $form, array $options); @@ -92,10 +80,6 @@ public function buildView(FormView $view, FormInterface $form, array $options); * Finishes a form view for the type hierarchy. * * It is called after the children of the view have been built. - * - * @param FormView $view The form view to configure - * @param FormInterface $form The form corresponding to the view - * @param array $options The options used for the configuration */ public function finishView(FormView $view, FormInterface $form, array $options); diff --git a/src/Symfony/Component/Form/Tests/AbstractFormTest.php b/src/Symfony/Component/Form/Tests/AbstractFormTest.php index 4dc84e84e28a..a5cea2671e23 100644 --- a/src/Symfony/Component/Form/Tests/AbstractFormTest.php +++ b/src/Symfony/Component/Form/Tests/AbstractFormTest.php @@ -54,10 +54,9 @@ protected function tearDown() abstract protected function createForm(); /** - * @param string $name - * @param EventDispatcherInterface $dispatcher - * @param string|null $dataClass - * @param array $options + * @param string $name + * @param string|null $dataClass + * @param array $options * * @return FormBuilder */ diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 089793ed3f4a..21f865215d1b 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -745,11 +745,6 @@ public function hasSession() return null !== $this->session; } - /** - * Sets the Session. - * - * @param SessionInterface $session The Session - */ public function setSession(SessionInterface $session) { $this->session = $session; diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/MockFileSessionStorage.php b/src/Symfony/Component/HttpFoundation/Session/Storage/MockFileSessionStorage.php index b0996abc5032..7916fa81914d 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/MockFileSessionStorage.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/MockFileSessionStorage.php @@ -27,9 +27,8 @@ class MockFileSessionStorage extends MockArraySessionStorage private $savePath; /** - * @param string $savePath Path of directory to save session files - * @param string $name Session name - * @param MetadataBag $metaBag MetadataBag instance + * @param string $savePath Path of directory to save session files + * @param string $name Session name */ public function __construct(string $savePath = null, string $name = 'MOCKSESSID', MetadataBag $metaBag = null) { diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php b/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php index 9e03bfa41be6..297b114a0947 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php @@ -99,7 +99,6 @@ class NativeSessionStorage implements SessionStorageInterface * * @param array $options Session configuration options * @param \SessionHandlerInterface|null $handler - * @param MetadataBag $metaBag MetadataBag */ public function __construct(array $options = [], $handler = null, MetadataBag $metaBag = null) { diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/PhpBridgeSessionStorage.php b/src/Symfony/Component/HttpFoundation/Session/Storage/PhpBridgeSessionStorage.php index 8969e609aaf9..f0fac5843a25 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/PhpBridgeSessionStorage.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/PhpBridgeSessionStorage.php @@ -20,7 +20,6 @@ class PhpBridgeSessionStorage extends NativeSessionStorage { /** * @param \SessionHandlerInterface|null $handler - * @param MetadataBag $metaBag MetadataBag */ public function __construct($handler = null, MetadataBag $metaBag = null) { diff --git a/src/Symfony/Component/HttpKernel/Client.php b/src/Symfony/Component/HttpKernel/Client.php index d4ae5f8e6507..da43837a1b76 100644 --- a/src/Symfony/Component/HttpKernel/Client.php +++ b/src/Symfony/Component/HttpKernel/Client.php @@ -34,10 +34,7 @@ class Client extends AbstractBrowser private $catchExceptions = true; /** - * @param HttpKernelInterface $kernel An HttpKernel instance - * @param array $server The server parameters (equivalent of $_SERVER) - * @param History $history A History instance to store the browser history - * @param CookieJar $cookieJar A CookieJar instance to store the cookies + * @param array $server The server parameters (equivalent of $_SERVER) */ public function __construct(HttpKernelInterface $kernel, array $server = [], History $history = null, CookieJar $cookieJar = null) { diff --git a/src/Symfony/Component/HttpKernel/Controller/ArgumentResolverInterface.php b/src/Symfony/Component/HttpKernel/Controller/ArgumentResolverInterface.php index 5c512309662d..ba97775a9079 100644 --- a/src/Symfony/Component/HttpKernel/Controller/ArgumentResolverInterface.php +++ b/src/Symfony/Component/HttpKernel/Controller/ArgumentResolverInterface.php @@ -24,7 +24,6 @@ interface ArgumentResolverInterface /** * Returns the arguments to pass to the controller. * - * @param Request $request * @param callable $controller * * @return array An array of arguments to pass to the controller diff --git a/src/Symfony/Component/HttpKernel/Controller/ArgumentValueResolverInterface.php b/src/Symfony/Component/HttpKernel/Controller/ArgumentValueResolverInterface.php index 21d874364a75..1317707b1d5e 100644 --- a/src/Symfony/Component/HttpKernel/Controller/ArgumentValueResolverInterface.php +++ b/src/Symfony/Component/HttpKernel/Controller/ArgumentValueResolverInterface.php @@ -24,9 +24,6 @@ interface ArgumentValueResolverInterface /** * Whether this resolver can resolve the value for the given ArgumentMetadata. * - * @param Request $request - * @param ArgumentMetadata $argument - * * @return bool */ public function supports(Request $request, ArgumentMetadata $argument); @@ -34,9 +31,6 @@ public function supports(Request $request, ArgumentMetadata $argument); /** * Returns the possible value(s). * - * @param Request $request - * @param ArgumentMetadata $argument - * * @return iterable */ public function resolve(Request $request, ArgumentMetadata $argument); diff --git a/src/Symfony/Component/HttpKernel/Event/KernelEvent.php b/src/Symfony/Component/HttpKernel/Event/KernelEvent.php index f3db8a60d9ec..f6dff06ac855 100644 --- a/src/Symfony/Component/HttpKernel/Event/KernelEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/KernelEvent.php @@ -27,10 +27,8 @@ class KernelEvent extends Event private $requestType; /** - * @param HttpKernelInterface $kernel The kernel in which this event was thrown - * @param Request $request The request the kernel is currently processing - * @param int $requestType The request type the kernel is currently processing; one of - * HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST + * @param int $requestType The request type the kernel is currently processing; one of + * HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST */ public function __construct(HttpKernelInterface $kernel, Request $request, ?int $requestType) { diff --git a/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php b/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php index d9227d888baa..182a53667c4c 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php @@ -51,7 +51,6 @@ class DebugHandlersListener implements EventSubscriberInterface /** * @param callable|null $exceptionHandler A handler that will be called on Exception - * @param LoggerInterface|null $logger A PSR-3 logger * @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants * @param int|null $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value * @param bool $scream Enables/disables screaming mode, where even silenced errors are logged diff --git a/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php b/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php index 8abec7717fc1..ae64374c6efb 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php @@ -47,10 +47,6 @@ public function logKernelException(GetResponseForExceptionEvent $event) $this->logException($event->getException(), sprintf('Uncaught PHP Exception %s: "%s" at %s line %s', $e->getClass(), $e->getMessage(), $e->getFile(), $e->getLine())); } - /** - * @param string $eventName - * @param EventDispatcherInterface $eventDispatcher - */ public function onKernelException(GetResponseForExceptionEvent $event) { if (null === $this->controller) { @@ -123,9 +119,6 @@ protected function logException(\Exception $exception, $message) /** * Clones the request for the exception. * - * @param \Exception $exception The thrown exception - * @param Request $request The original request - * * @return Request The cloned request */ protected function duplicateRequest(\Exception $exception, Request $request) diff --git a/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php b/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php index 4e8f2d1ff8aa..2aa3ae5c4939 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php @@ -52,7 +52,6 @@ class RouterListener implements EventSubscriberInterface /** * @param UrlMatcherInterface|RequestMatcherInterface $matcher The Url or Request matcher * @param RequestContext|null $context The RequestContext (can be null when $matcher implements RequestContextAwareInterface) - * @param LoggerInterface|null $logger The logger * @param string $projectDir * @param bool $debug * @@ -90,8 +89,6 @@ private function setCurrentRequest(Request $request = null) /** * After a sub-request is done, we need to reset the routing context to the parent request so that the URL generator * operates on the correct context again. - * - * @param FinishRequestEvent $event */ public function onKernelFinishRequest(FinishRequestEvent $event) { diff --git a/src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php b/src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php index adb1ec822755..f81199d88382 100644 --- a/src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php +++ b/src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php @@ -33,7 +33,6 @@ abstract class AbstractSurrogateFragmentRenderer extends RoutableFragmentRendere * instance of InlineFragmentRenderer. * * @param FragmentRendererInterface $inlineStrategy The inline strategy to use when the surrogate is not supported - * @param UriSigner $signer */ public function __construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null) { diff --git a/src/Symfony/Component/HttpKernel/Fragment/FragmentHandler.php b/src/Symfony/Component/HttpKernel/Fragment/FragmentHandler.php index 758f0e8fc1c1..46a2a116d9a7 100644 --- a/src/Symfony/Component/HttpKernel/Fragment/FragmentHandler.php +++ b/src/Symfony/Component/HttpKernel/Fragment/FragmentHandler.php @@ -33,9 +33,8 @@ class FragmentHandler private $requestStack; /** - * @param RequestStack $requestStack The Request stack that controls the lifecycle of requests - * @param FragmentRendererInterface[] $renderers An array of FragmentRendererInterface instances - * @param bool $debug Whether the debug mode is enabled or not + * @param FragmentRendererInterface[] $renderers An array of FragmentRendererInterface instances + * @param bool $debug Whether the debug mode is enabled or not */ public function __construct(RequestStack $requestStack, array $renderers = [], bool $debug = false) { diff --git a/src/Symfony/Component/HttpKernel/Fragment/HIncludeFragmentRenderer.php b/src/Symfony/Component/HttpKernel/Fragment/HIncludeFragmentRenderer.php index 08f7c167d5e9..24da9588cdfa 100644 --- a/src/Symfony/Component/HttpKernel/Fragment/HIncludeFragmentRenderer.php +++ b/src/Symfony/Component/HttpKernel/Fragment/HIncludeFragmentRenderer.php @@ -34,9 +34,7 @@ class HIncludeFragmentRenderer extends RoutableFragmentRenderer /** * @param EngineInterface|Environment $templating An EngineInterface or a Twig instance - * @param UriSigner $signer A UriSigner instance * @param string $globalDefaultTemplate The global default content (it can be a template name or the content) - * @param string $charset */ public function __construct($templating = null, UriSigner $signer = null, string $globalDefaultTemplate = null, string $charset = 'utf-8') { diff --git a/src/Symfony/Component/HttpKernel/Kernel.php b/src/Symfony/Component/HttpKernel/Kernel.php index e2a1520b664d..83890876c5ff 100644 --- a/src/Symfony/Component/HttpKernel/Kernel.php +++ b/src/Symfony/Component/HttpKernel/Kernel.php @@ -716,10 +716,8 @@ protected function getContainerBuilder() /** * Dumps the service container to PHP code in the cache. * - * @param ConfigCache $cache The config cache - * @param ContainerBuilder $container The service container - * @param string $class The name of the class to generate - * @param string $baseClass The name of the container's base class + * @param string $class The name of the class to generate + * @param string $baseClass The name of the container's base class */ protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container, $class, $baseClass) { diff --git a/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php b/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php index ae5a74a0ca52..24d7f53cb748 100644 --- a/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php +++ b/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php @@ -26,8 +26,7 @@ class BufferedBundleReader implements BundleReaderInterface /** * Buffers a given reader. * - * @param BundleReaderInterface $reader The reader to buffer - * @param int $bufferSize The number of entries to store in the buffer + * @param int $bufferSize The number of entries to store in the buffer */ public function __construct(BundleReaderInterface $reader, int $bufferSize) { diff --git a/src/Symfony/Component/Intl/Data/Generator/AbstractDataGenerator.php b/src/Symfony/Component/Intl/Data/Generator/AbstractDataGenerator.php index f25f62d90cb6..82f0e5e1fd1b 100644 --- a/src/Symfony/Component/Intl/Data/Generator/AbstractDataGenerator.php +++ b/src/Symfony/Component/Intl/Data/Generator/AbstractDataGenerator.php @@ -91,8 +91,7 @@ public function generateData(GeneratorConfig $config) } /** - * @param LocaleScanner $scanner - * @param string $sourceDir + * @param string $sourceDir * * @return string[] */ diff --git a/src/Symfony/Component/Intl/Data/Generator/GeneratorConfig.php b/src/Symfony/Component/Intl/Data/Generator/GeneratorConfig.php index b7b3095076bc..2ef2c80cbf8c 100644 --- a/src/Symfony/Component/Intl/Data/Generator/GeneratorConfig.php +++ b/src/Symfony/Component/Intl/Data/Generator/GeneratorConfig.php @@ -39,8 +39,7 @@ public function __construct(string $sourceDir, string $icuVersion) /** * Adds a writer to be used during the data conversion. * - * @param string $targetDir The output directory - * @param BundleWriterInterface $writer The writer instance + * @param string $targetDir The output directory */ public function addBundleWriter($targetDir, BundleWriterInterface $writer) { diff --git a/src/Symfony/Component/Intl/Data/Provider/CurrencyDataProvider.php b/src/Symfony/Component/Intl/Data/Provider/CurrencyDataProvider.php index d09028938b15..f4e32d153762 100644 --- a/src/Symfony/Component/Intl/Data/Provider/CurrencyDataProvider.php +++ b/src/Symfony/Component/Intl/Data/Provider/CurrencyDataProvider.php @@ -35,8 +35,7 @@ class CurrencyDataProvider * Creates a data provider that reads currency-related data from a * resource bundle. * - * @param string $path The path to the resource bundle - * @param BundleEntryReaderInterface $reader The reader for reading the resource bundle + * @param string $path The path to the resource bundle */ public function __construct(string $path, BundleEntryReaderInterface $reader) { diff --git a/src/Symfony/Component/Intl/Data/Provider/LanguageDataProvider.php b/src/Symfony/Component/Intl/Data/Provider/LanguageDataProvider.php index 0d1bfe61df40..1fec3d9f2e35 100644 --- a/src/Symfony/Component/Intl/Data/Provider/LanguageDataProvider.php +++ b/src/Symfony/Component/Intl/Data/Provider/LanguageDataProvider.php @@ -28,8 +28,7 @@ class LanguageDataProvider /** * Creates a data provider that reads locale-related data from .res files. * - * @param string $path The path to the directory containing the .res files - * @param BundleEntryReaderInterface $reader The reader for reading the .res files + * @param string $path The path to the directory containing the .res files */ public function __construct(string $path, BundleEntryReaderInterface $reader) { diff --git a/src/Symfony/Component/Intl/Data/Provider/LocaleDataProvider.php b/src/Symfony/Component/Intl/Data/Provider/LocaleDataProvider.php index fdabb689fb63..e5e5e0096dae 100644 --- a/src/Symfony/Component/Intl/Data/Provider/LocaleDataProvider.php +++ b/src/Symfony/Component/Intl/Data/Provider/LocaleDataProvider.php @@ -28,8 +28,7 @@ class LocaleDataProvider /** * Creates a data provider that reads locale-related data from .res files. * - * @param string $path The path to the directory containing the .res files - * @param BundleEntryReaderInterface $reader The reader for reading the .res files + * @param string $path The path to the directory containing the .res files */ public function __construct(string $path, BundleEntryReaderInterface $reader) { diff --git a/src/Symfony/Component/Intl/Data/Provider/RegionDataProvider.php b/src/Symfony/Component/Intl/Data/Provider/RegionDataProvider.php index 881529440141..07592a27d989 100644 --- a/src/Symfony/Component/Intl/Data/Provider/RegionDataProvider.php +++ b/src/Symfony/Component/Intl/Data/Provider/RegionDataProvider.php @@ -28,8 +28,7 @@ class RegionDataProvider /** * Creates a data provider that reads locale-related data from .res files. * - * @param string $path The path to the directory containing the .res files - * @param BundleEntryReaderInterface $reader The reader for reading the .res files + * @param string $path The path to the directory containing the .res files */ public function __construct(string $path, BundleEntryReaderInterface $reader) { diff --git a/src/Symfony/Component/Intl/Data/Provider/ScriptDataProvider.php b/src/Symfony/Component/Intl/Data/Provider/ScriptDataProvider.php index 08bc3797262b..ecd2d0aa671b 100644 --- a/src/Symfony/Component/Intl/Data/Provider/ScriptDataProvider.php +++ b/src/Symfony/Component/Intl/Data/Provider/ScriptDataProvider.php @@ -28,8 +28,7 @@ class ScriptDataProvider /** * Creates a data provider that reads locale-related data from .res files. * - * @param string $path The path to the directory containing the .res files - * @param BundleEntryReaderInterface $reader The reader for reading the .res files + * @param string $path The path to the directory containing the .res files */ public function __construct(string $path, BundleEntryReaderInterface $reader) { diff --git a/src/Symfony/Component/Ldap/Adapter/EntryManagerInterface.php b/src/Symfony/Component/Ldap/Adapter/EntryManagerInterface.php index 2ca5706ca0a6..5fde91e8d77b 100644 --- a/src/Symfony/Component/Ldap/Adapter/EntryManagerInterface.php +++ b/src/Symfony/Component/Ldap/Adapter/EntryManagerInterface.php @@ -31,8 +31,6 @@ interface EntryManagerInterface /** * Adds a new entry in the Ldap server. * - * @param Entry $entry - * * @throws NotBoundException * @throws LdapException */ @@ -41,8 +39,6 @@ public function add(Entry $entry); /** * Updates an entry from the Ldap server. * - * @param Entry $entry - * * @throws NotBoundException * @throws LdapException */ @@ -51,7 +47,6 @@ public function update(Entry $entry); /** * Renames an entry on the Ldap server. * - * @param Entry $entry * @param string $newRdn * @param bool $removeOldRdn */ @@ -60,8 +55,6 @@ public function rename(Entry $entry, $newRdn, $removeOldRdn = true); /** * Removes an entry from the Ldap server. * - * @param Entry $entry - * * @throws NotBoundException * @throws LdapException */ diff --git a/src/Symfony/Component/Lock/Lock.php b/src/Symfony/Component/Lock/Lock.php index 534508bfc436..8a61bf6f7b8e 100644 --- a/src/Symfony/Component/Lock/Lock.php +++ b/src/Symfony/Component/Lock/Lock.php @@ -37,10 +37,8 @@ final class Lock implements LockInterface, LoggerAwareInterface private $dirty = false; /** - * @param Key $key Resource to lock - * @param PersistingStoreInterface $store Store used to handle lock persistence - * @param float|null $ttl Maximum expected lock duration in seconds - * @param bool $autoRelease Whether to automatically release the lock or not when the lock instance is destroyed + * @param float|null $ttl Maximum expected lock duration in seconds + * @param bool $autoRelease Whether to automatically release the lock or not when the lock instance is destroyed */ public function __construct(Key $key, PersistingStoreInterface $store, float $ttl = null, bool $autoRelease = true) { diff --git a/src/Symfony/Component/Lock/Store/CombinedStore.php b/src/Symfony/Component/Lock/Store/CombinedStore.php index c66e454015c3..3553d6ffb78e 100644 --- a/src/Symfony/Component/Lock/Store/CombinedStore.php +++ b/src/Symfony/Component/Lock/Store/CombinedStore.php @@ -38,8 +38,7 @@ class CombinedStore implements StoreInterface, LoggerAwareInterface private $strategy; /** - * @param PersistingStoreInterface[] $stores The list of synchronized stores - * @param StrategyInterface $strategy + * @param PersistingStoreInterface[] $stores The list of synchronized stores * * @throws InvalidArgumentException */ diff --git a/src/Symfony/Component/Lock/Store/RetryTillSaveStore.php b/src/Symfony/Component/Lock/Store/RetryTillSaveStore.php index 9a412810c248..a79b1c7373c6 100644 --- a/src/Symfony/Component/Lock/Store/RetryTillSaveStore.php +++ b/src/Symfony/Component/Lock/Store/RetryTillSaveStore.php @@ -35,9 +35,8 @@ class RetryTillSaveStore implements BlockingStoreInterface, StoreInterface, Logg private $retryCount; /** - * @param PersistingStoreInterface $decorated The decorated PersistingStoreInterface - * @param int $retrySleep Duration in ms between 2 retry - * @param int $retryCount Maximum amount of retry + * @param int $retrySleep Duration in ms between 2 retry + * @param int $retryCount Maximum amount of retry */ public function __construct(PersistingStoreInterface $decorated, int $retrySleep = 100, int $retryCount = PHP_INT_MAX) { diff --git a/src/Symfony/Component/Messenger/RoutableMessageBus.php b/src/Symfony/Component/Messenger/RoutableMessageBus.php index 645358224aba..b9e73d394973 100644 --- a/src/Symfony/Component/Messenger/RoutableMessageBus.php +++ b/src/Symfony/Component/Messenger/RoutableMessageBus.php @@ -29,9 +29,6 @@ class RoutableMessageBus implements MessageBusInterface private $busLocator; private $fallbackBus; - /** - * @param ContainerInterface $busLocator A locator full of MessageBusInterface objects - */ public function __construct(ContainerInterface $busLocator, MessageBusInterface $fallbackBus = null) { $this->busLocator = $busLocator; diff --git a/src/Symfony/Component/PropertyAccess/Exception/UnexpectedTypeException.php b/src/Symfony/Component/PropertyAccess/Exception/UnexpectedTypeException.php index a7311329a8f9..78bc41673550 100644 --- a/src/Symfony/Component/PropertyAccess/Exception/UnexpectedTypeException.php +++ b/src/Symfony/Component/PropertyAccess/Exception/UnexpectedTypeException.php @@ -21,9 +21,8 @@ class UnexpectedTypeException extends RuntimeException { /** - * @param mixed $value The unexpected value found while traversing property path - * @param PropertyPathInterface $path The property path - * @param int $pathIndex The property path index when the unexpected value was found + * @param mixed $value The unexpected value found while traversing property path + * @param int $pathIndex The property path index when the unexpected value was found */ public function __construct($value, PropertyPathInterface $path, int $pathIndex) { diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php index 89da6a019d99..6fe3dd87ac84 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php @@ -841,10 +841,9 @@ private function getPropertyPath($propertyPath): PropertyPath /** * Creates the APCu adapter if applicable. * - * @param string $namespace - * @param int $defaultLifetime - * @param string $version - * @param LoggerInterface|null $logger + * @param string $namespace + * @param int $defaultLifetime + * @param string $version * * @return AdapterInterface * diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php index a300bdc6f5c3..94aa4ecc3535 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php @@ -138,8 +138,6 @@ public function isExceptionOnInvalidPropertyPath() /** * Sets a cache system. * - * @param CacheItemPoolInterface|null $cacheItemPool - * * @return PropertyAccessorBuilder The builder object */ public function setCacheItemPool(CacheItemPoolInterface $cacheItemPool = null) diff --git a/src/Symfony/Component/PropertyAccess/PropertyPathIterator.php b/src/Symfony/Component/PropertyAccess/PropertyPathIterator.php index 02fa26e1fc5b..3445db2cb0dc 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyPathIterator.php +++ b/src/Symfony/Component/PropertyAccess/PropertyPathIterator.php @@ -21,9 +21,6 @@ class PropertyPathIterator extends \ArrayIterator implements PropertyPathIterato { protected $path; - /** - * @param PropertyPathInterface $path The property path to traverse - */ public function __construct(PropertyPathInterface $path) { parent::__construct($path->getElements()); diff --git a/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php b/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php index d4060f4fa45e..0b3648196d6d 100644 --- a/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php +++ b/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php @@ -52,10 +52,9 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property private $arrayMutatorPrefixes; /** - * @param DocBlockFactoryInterface $docBlockFactory - * @param string[]|null $mutatorPrefixes - * @param string[]|null $accessorPrefixes - * @param string[]|null $arrayMutatorPrefixes + * @param string[]|null $mutatorPrefixes + * @param string[]|null $accessorPrefixes + * @param string[]|null $arrayMutatorPrefixes */ public function __construct(DocBlockFactoryInterface $docBlockFactory = null, array $mutatorPrefixes = null, array $accessorPrefixes = null, array $arrayMutatorPrefixes = null) { diff --git a/src/Symfony/Component/Routing/Loader/XmlFileLoader.php b/src/Symfony/Component/Routing/Loader/XmlFileLoader.php index 268838cdef86..19c75ef12dc2 100644 --- a/src/Symfony/Component/Routing/Loader/XmlFileLoader.php +++ b/src/Symfony/Component/Routing/Loader/XmlFileLoader.php @@ -63,10 +63,9 @@ public function load($file, $type = null) /** * Parses a node from a loaded XML file. * - * @param RouteCollection $collection Collection to associate with the node - * @param \DOMElement $node Element to parse - * @param string $path Full path of the XML file being processed - * @param string $file Loaded file name + * @param \DOMElement $node Element to parse + * @param string $path Full path of the XML file being processed + * @param string $file Loaded file name * * @throws \InvalidArgumentException When the XML is invalid */ @@ -99,9 +98,8 @@ public function supports($resource, $type = null) /** * Parses a route and adds it to the RouteCollection. * - * @param RouteCollection $collection RouteCollection instance - * @param \DOMElement $node Element to parse that represents a Route - * @param string $path Full path of the XML file being processed + * @param \DOMElement $node Element to parse that represents a Route + * @param string $path Full path of the XML file being processed * * @throws \InvalidArgumentException When the XML is invalid */ @@ -140,10 +138,9 @@ protected function parseRoute(RouteCollection $collection, \DOMElement $node, $p /** * Parses an import and adds the routes in the resource to the RouteCollection. * - * @param RouteCollection $collection RouteCollection instance - * @param \DOMElement $node Element to parse that represents a Route - * @param string $path Full path of the XML file being processed - * @param string $file Loaded file name + * @param \DOMElement $node Element to parse that represents a Route + * @param string $path Full path of the XML file being processed + * @param string $file Loaded file name * * @throws \InvalidArgumentException When the XML is invalid */ diff --git a/src/Symfony/Component/Routing/Matcher/UrlMatcher.php b/src/Symfony/Component/Routing/Matcher/UrlMatcher.php index dca1d6366fa0..d40deff70965 100644 --- a/src/Symfony/Component/Routing/Matcher/UrlMatcher.php +++ b/src/Symfony/Component/Routing/Matcher/UrlMatcher.php @@ -120,8 +120,7 @@ public function addExpressionLanguageProvider(ExpressionFunctionProviderInterfac /** * Tries to match a URL with a set of routes. * - * @param string $pathinfo The path info to be parsed - * @param RouteCollection $routes The set of routes + * @param string $pathinfo The path info to be parsed * * @return array An array of parameters * @@ -208,7 +207,6 @@ protected function matchCollection($pathinfo, RouteCollection $routes) * in matchers that do not have access to the matched Route instance * (like the PHP and Apache matcher dumpers). * - * @param Route $route The route we are matching against * @param string $name The name of the route * @param array $attributes An array of attributes from the matcher * @@ -231,7 +229,6 @@ protected function getAttributes(Route $route, $name, array $attributes) * * @param string $pathinfo The path * @param string $name The route name - * @param Route $route The route * * @return array The first element represents the status, the second contains additional information */ diff --git a/src/Symfony/Component/Routing/Route.php b/src/Symfony/Component/Routing/Route.php index 4cb0b178bd62..51785fda9d98 100644 --- a/src/Symfony/Component/Routing/Route.php +++ b/src/Symfony/Component/Routing/Route.php @@ -267,8 +267,6 @@ public function getOptions() * * This method implements a fluent interface. * - * @param array $options The options - * * @return $this */ public function setOptions(array $options) @@ -285,8 +283,6 @@ public function setOptions(array $options) * * This method implements a fluent interface. * - * @param array $options The options - * * @return $this */ public function addOptions(array $options) diff --git a/src/Symfony/Component/Routing/RouteCollection.php b/src/Symfony/Component/Routing/RouteCollection.php index 76b1a84d9ccc..54ccad805d78 100644 --- a/src/Symfony/Component/Routing/RouteCollection.php +++ b/src/Symfony/Component/Routing/RouteCollection.php @@ -69,8 +69,7 @@ public function count() /** * Adds a route. * - * @param string $name The route name - * @param Route $route A Route instance + * @param string $name The route name */ public function add($name, Route $route) { diff --git a/src/Symfony/Component/Routing/RouteCollectionBuilder.php b/src/Symfony/Component/Routing/RouteCollectionBuilder.php index 86013a3fa378..92cf7e793884 100644 --- a/src/Symfony/Component/Routing/RouteCollectionBuilder.php +++ b/src/Symfony/Component/Routing/RouteCollectionBuilder.php @@ -115,8 +115,7 @@ public function createBuilder() /** * Add a RouteCollectionBuilder. * - * @param string $prefix - * @param RouteCollectionBuilder $builder + * @param string $prefix */ public function mount($prefix, self $builder) { @@ -127,7 +126,6 @@ public function mount($prefix, self $builder) /** * Adds a Route object to the builder. * - * @param Route $route * @param string|null $name * * @return $this diff --git a/src/Symfony/Component/Security/Core/Authentication/AuthenticationManagerInterface.php b/src/Symfony/Component/Security/Core/Authentication/AuthenticationManagerInterface.php index c97d747d4261..6237f79aa100 100644 --- a/src/Symfony/Component/Security/Core/Authentication/AuthenticationManagerInterface.php +++ b/src/Symfony/Component/Security/Core/Authentication/AuthenticationManagerInterface.php @@ -25,8 +25,6 @@ interface AuthenticationManagerInterface /** * Attempts to authenticate a TokenInterface object. * - * @param TokenInterface $token The TokenInterface instance to authenticate - * * @return TokenInterface An authenticated TokenInterface instance, never null * * @throws AuthenticationException if the authentication fails diff --git a/src/Symfony/Component/Security/Core/Authentication/Provider/UserAuthenticationProvider.php b/src/Symfony/Component/Security/Core/Authentication/Provider/UserAuthenticationProvider.php index 16769aa19fcd..9912259b39bb 100644 --- a/src/Symfony/Component/Security/Core/Authentication/Provider/UserAuthenticationProvider.php +++ b/src/Symfony/Component/Security/Core/Authentication/Provider/UserAuthenticationProvider.php @@ -128,8 +128,7 @@ private function getRoles(UserInterface $user, TokenInterface $token): array /** * Retrieves the user from an implementation-specific location. * - * @param string $username The username to retrieve - * @param UsernamePasswordToken $token The Token + * @param string $username The username to retrieve * * @return UserInterface The user * diff --git a/src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php b/src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php index 766201ecf14e..9c225b6038f5 100644 --- a/src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php +++ b/src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php @@ -24,9 +24,8 @@ class RememberMeToken extends AbstractToken private $providerKey; /** - * @param UserInterface $user - * @param string $providerKey - * @param string $secret A secret used to make sure the token is created by the app and not by a malicious client + * @param string $providerKey + * @param string $secret A secret used to make sure the token is created by the app and not by a malicious client * * @throws \InvalidArgumentException */ diff --git a/src/Symfony/Component/Security/Core/Authentication/Token/SwitchUserToken.php b/src/Symfony/Component/Security/Core/Authentication/Token/SwitchUserToken.php index ec98f04cfe8b..4177cee658f6 100644 --- a/src/Symfony/Component/Security/Core/Authentication/Token/SwitchUserToken.php +++ b/src/Symfony/Component/Security/Core/Authentication/Token/SwitchUserToken.php @@ -21,11 +21,10 @@ class SwitchUserToken extends UsernamePasswordToken private $originalToken; /** - * @param string|object $user The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method - * @param mixed $credentials This usually is the password of the user - * @param string $providerKey The provider key - * @param string[] $roles An array of roles - * @param TokenInterface $originalToken The token of the user who switched to the current user + * @param string|object $user The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method + * @param mixed $credentials This usually is the password of the user + * @param string $providerKey The provider key + * @param string[] $roles An array of roles * * @throws \InvalidArgumentException */ diff --git a/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php b/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php index 319d2d866ccd..88ec27afd688 100644 --- a/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php +++ b/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php @@ -70,9 +70,8 @@ public function decide(TokenInterface $token, array $attributes, $object = null) /** * Adds voter vote and class to the voter details. * - * @param VoterInterface $voter voter - * @param array $attributes attributes used for the vote - * @param int $vote vote of the voter + * @param array $attributes attributes used for the vote + * @param int $vote vote of the voter */ public function addVoterVote(VoterInterface $voter, array $attributes, int $vote) { diff --git a/src/Symfony/Component/Security/Core/Authorization/Voter/Voter.php b/src/Symfony/Component/Security/Core/Authorization/Voter/Voter.php index 0641486b7a13..6665753fe111 100644 --- a/src/Symfony/Component/Security/Core/Authorization/Voter/Voter.php +++ b/src/Symfony/Component/Security/Core/Authorization/Voter/Voter.php @@ -60,9 +60,8 @@ abstract protected function supports($attribute, $subject); * Perform a single access check operation on a given attribute, subject and token. * It is safe to assume that $attribute and $subject already passed the "supports()" method check. * - * @param string $attribute - * @param mixed $subject - * @param TokenInterface $token + * @param string $attribute + * @param mixed $subject * * @return bool */ diff --git a/src/Symfony/Component/Security/Core/Encoder/UserPasswordEncoderInterface.php b/src/Symfony/Component/Security/Core/Encoder/UserPasswordEncoderInterface.php index 99508462fc3a..61f006cc1fc2 100644 --- a/src/Symfony/Component/Security/Core/Encoder/UserPasswordEncoderInterface.php +++ b/src/Symfony/Component/Security/Core/Encoder/UserPasswordEncoderInterface.php @@ -25,16 +25,14 @@ interface UserPasswordEncoderInterface /** * Encodes the plain password. * - * @param UserInterface $user The user - * @param string $plainPassword The password to encode + * @param string $plainPassword The password to encode * * @return string The encoded password */ public function encodePassword(UserInterface $user, $plainPassword); /** - * @param UserInterface $user The user - * @param string $raw A raw password + * @param string $raw A raw password * * @return bool true if the password is valid, false otherwise */ diff --git a/src/Symfony/Component/Security/Core/Role/SwitchUserRole.php b/src/Symfony/Component/Security/Core/Role/SwitchUserRole.php index 85d7ddb1a56a..42c515fbdd46 100644 --- a/src/Symfony/Component/Security/Core/Role/SwitchUserRole.php +++ b/src/Symfony/Component/Security/Core/Role/SwitchUserRole.php @@ -27,8 +27,7 @@ class SwitchUserRole extends Role private $source; /** - * @param string $role The role as a string - * @param TokenInterface $source The original token + * @param string $role The role as a string */ public function __construct(string $role, TokenInterface $source) { diff --git a/src/Symfony/Component/Security/Csrf/TokenStorage/SessionTokenStorage.php b/src/Symfony/Component/Security/Csrf/TokenStorage/SessionTokenStorage.php index 67f93ec6724b..4c093fbac1a6 100644 --- a/src/Symfony/Component/Security/Csrf/TokenStorage/SessionTokenStorage.php +++ b/src/Symfony/Component/Security/Csrf/TokenStorage/SessionTokenStorage.php @@ -32,8 +32,7 @@ class SessionTokenStorage implements ClearableTokenStorageInterface /** * Initializes the storage with a Session object and a session namespace. * - * @param SessionInterface $session The user session from which the session ID is returned - * @param string $namespace The namespace under which the token is stored in the session + * @param string $namespace The namespace under which the token is stored in the session */ public function __construct(SessionInterface $session, string $namespace = self::SESSION_NAMESPACE) { diff --git a/src/Symfony/Component/Security/Guard/AuthenticatorInterface.php b/src/Symfony/Component/Security/Guard/AuthenticatorInterface.php index 3ff5b13b8337..3c695a45ab61 100644 --- a/src/Symfony/Component/Security/Guard/AuthenticatorInterface.php +++ b/src/Symfony/Component/Security/Guard/AuthenticatorInterface.php @@ -72,8 +72,7 @@ public function getCredentials(Request $request); * You may throw an AuthenticationException if you wish. If you return * null, then a UsernameNotFoundException is thrown for you. * - * @param mixed $credentials - * @param UserProviderInterface $userProvider + * @param mixed $credentials * * @throws AuthenticationException * @@ -90,8 +89,7 @@ public function getUser($credentials, UserProviderInterface $userProvider); * * The *credentials* are the return value from getCredentials() * - * @param mixed $credentials - * @param UserInterface $user + * @param mixed $credentials * * @return bool * @@ -108,8 +106,7 @@ public function checkCredentials($credentials, UserInterface $user); * * @see AbstractGuardAuthenticator * - * @param UserInterface $user - * @param string $providerKey The provider (i.e. firewall) key + * @param string $providerKey The provider (i.e. firewall) key * * @return GuardTokenInterface */ @@ -124,9 +121,6 @@ public function createAuthenticatedToken(UserInterface $user, $providerKey); * If you return null, the request will continue, but the user will * not be authenticated. This is probably not what you want to do. * - * @param Request $request - * @param AuthenticationException $exception - * * @return Response|null */ public function onAuthenticationFailure(Request $request, AuthenticationException $exception); @@ -140,9 +134,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio * If you return null, the current request will continue, and the user * will be authenticated. This makes sense, for example, with an API. * - * @param Request $request - * @param TokenInterface $token - * @param string $providerKey The provider (i.e. firewall) key + * @param string $providerKey The provider (i.e. firewall) key * * @return Response|null */ diff --git a/src/Symfony/Component/Security/Guard/Token/PostAuthenticationGuardToken.php b/src/Symfony/Component/Security/Guard/Token/PostAuthenticationGuardToken.php index 245ce241074e..1c58199c5b0f 100644 --- a/src/Symfony/Component/Security/Guard/Token/PostAuthenticationGuardToken.php +++ b/src/Symfony/Component/Security/Guard/Token/PostAuthenticationGuardToken.php @@ -27,9 +27,8 @@ class PostAuthenticationGuardToken extends AbstractToken implements GuardTokenIn private $providerKey; /** - * @param UserInterface $user The user! - * @param string $providerKey The provider (firewall) key - * @param string[] $roles An array of roles + * @param string $providerKey The provider (firewall) key + * @param string[] $roles An array of roles * * @throws \InvalidArgumentException */ diff --git a/src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.php b/src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.php index 8b65dc9ee592..f0580320f4df 100644 --- a/src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.php +++ b/src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.php @@ -40,8 +40,7 @@ class DefaultAuthenticationSuccessHandler implements AuthenticationSuccessHandle ]; /** - * @param HttpUtils $httpUtils - * @param array $options Options for processing a successful authentication attempt + * @param array $options Options for processing a successful authentication attempt */ public function __construct(HttpUtils $httpUtils, array $options = []) { diff --git a/src/Symfony/Component/Security/Http/Authentication/SimpleAuthenticationHandler.php b/src/Symfony/Component/Security/Http/Authentication/SimpleAuthenticationHandler.php index e03a5e608db5..86ac918e0d8f 100644 --- a/src/Symfony/Component/Security/Http/Authentication/SimpleAuthenticationHandler.php +++ b/src/Symfony/Component/Security/Http/Authentication/SimpleAuthenticationHandler.php @@ -38,12 +38,6 @@ class SimpleAuthenticationHandler implements AuthenticationFailureHandlerInterfa protected $simpleAuthenticator; protected $logger; - /** - * @param SimpleAuthenticatorInterface $authenticator SimpleAuthenticatorInterface instance - * @param AuthenticationSuccessHandlerInterface $successHandler Default success handler - * @param AuthenticationFailureHandlerInterface $failureHandler Default failure handler - * @param LoggerInterface $logger Optional logger - */ public function __construct(SimpleAuthenticatorInterface $authenticator, AuthenticationSuccessHandlerInterface $successHandler, AuthenticationFailureHandlerInterface $failureHandler, LoggerInterface $logger = null) { $this->simpleAuthenticator = $authenticator; diff --git a/src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php b/src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php index c37a0e487579..91271d14a3d9 100644 --- a/src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php +++ b/src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php @@ -40,9 +40,6 @@ interface AuthenticationEntryPointInterface * * return new Response('Auth header required', 401); * - * @param Request $request The request that resulted in an AuthenticationException - * @param AuthenticationException $authException The exception that started the authentication process - * * @return Response */ public function start(Request $request, AuthenticationException $authException = null); diff --git a/src/Symfony/Component/Security/Http/HttpUtils.php b/src/Symfony/Component/Security/Http/HttpUtils.php index 5dbc928db0dc..b6903d8de54f 100644 --- a/src/Symfony/Component/Security/Http/HttpUtils.php +++ b/src/Symfony/Component/Security/Http/HttpUtils.php @@ -73,8 +73,7 @@ public function createRedirectResponse(Request $request, $path, $status = 302) /** * Creates a Request. * - * @param Request $request The current Request instance - * @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) + * @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) * * @return Request A Request instance */ diff --git a/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php b/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php index 6134858e16a4..f66f558ebef3 100644 --- a/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php +++ b/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php @@ -41,12 +41,11 @@ public function __construct(RequestStack $requestStack = null, UrlGeneratorInter /** * Registers a firewall's LogoutListener, allowing its URL to be generated. * - * @param string $key The firewall key - * @param string $logoutPath The path that starts the logout process - * @param string $csrfTokenId The ID of the CSRF token - * @param string $csrfParameter The CSRF token parameter name - * @param CsrfTokenManagerInterface|null $csrfTokenManager A CsrfTokenManagerInterface instance - * @param string|null $context The listener context + * @param string $key The firewall key + * @param string $logoutPath The path that starts the logout process + * @param string $csrfTokenId The ID of the CSRF token + * @param string $csrfParameter The CSRF token parameter name + * @param string|null $context The listener context */ public function registerListener($key, $logoutPath, $csrfTokenId, $csrfParameter, CsrfTokenManagerInterface $csrfTokenManager = null, string $context = null) { diff --git a/src/Symfony/Component/Security/Http/ParameterBagUtils.php b/src/Symfony/Component/Security/Http/ParameterBagUtils.php index eed5421f8f60..c303384418d7 100644 --- a/src/Symfony/Component/Security/Http/ParameterBagUtils.php +++ b/src/Symfony/Component/Security/Http/ParameterBagUtils.php @@ -29,8 +29,7 @@ final class ParameterBagUtils * * Paths like foo[bar] will be evaluated to find deeper items in nested data structures. * - * @param ParameterBag $parameters The parameter bag - * @param string $path The key + * @param string $path The key * * @return mixed * @@ -64,8 +63,7 @@ public static function getParameterBagValue(ParameterBag $parameters, $path) * * Paths like foo[bar] will be evaluated to find deeper items in nested data structures. * - * @param Request $request The request - * @param string $path The key + * @param string $path The key * * @return mixed * diff --git a/src/Symfony/Component/Serializer/Mapping/ClassMetadata.php b/src/Symfony/Component/Serializer/Mapping/ClassMetadata.php index 6d1d8cf7ab9a..0d71c75fa22b 100644 --- a/src/Symfony/Component/Serializer/Mapping/ClassMetadata.php +++ b/src/Symfony/Component/Serializer/Mapping/ClassMetadata.php @@ -51,8 +51,7 @@ class ClassMetadata implements ClassMetadataInterface /** * Constructs a metadata for the given class. * - * @param string $class - * @param ClassDiscriminatorMapping|null $classDiscriminatorMapping + * @param string $class */ public function __construct(string $class, ClassDiscriminatorMapping $classDiscriminatorMapping = null) { diff --git a/src/Symfony/Component/Serializer/Mapping/ClassMetadataInterface.php b/src/Symfony/Component/Serializer/Mapping/ClassMetadataInterface.php index 45ed03dfa1d9..a8c6d02fe506 100644 --- a/src/Symfony/Component/Serializer/Mapping/ClassMetadataInterface.php +++ b/src/Symfony/Component/Serializer/Mapping/ClassMetadataInterface.php @@ -60,8 +60,5 @@ public function getReflectionClass(); */ public function getClassDiscriminatorMapping(); - /** - * @param ClassDiscriminatorMapping|null $mapping - */ public function setClassDiscriminatorMapping(ClassDiscriminatorMapping $mapping = null); } diff --git a/src/Symfony/Component/Serializer/Normalizer/DenormalizerAwareInterface.php b/src/Symfony/Component/Serializer/Normalizer/DenormalizerAwareInterface.php index 4a6a4e26e92d..87bfb842290e 100644 --- a/src/Symfony/Component/Serializer/Normalizer/DenormalizerAwareInterface.php +++ b/src/Symfony/Component/Serializer/Normalizer/DenormalizerAwareInterface.php @@ -20,8 +20,6 @@ interface DenormalizerAwareInterface { /** * Sets the owning Denormalizer object. - * - * @param DenormalizerInterface $denormalizer */ public function setDenormalizer(DenormalizerInterface $denormalizer); } diff --git a/src/Symfony/Component/Serializer/Normalizer/NormalizerAwareInterface.php b/src/Symfony/Component/Serializer/Normalizer/NormalizerAwareInterface.php index 55015fe6658b..be380912b1ca 100644 --- a/src/Symfony/Component/Serializer/Normalizer/NormalizerAwareInterface.php +++ b/src/Symfony/Component/Serializer/Normalizer/NormalizerAwareInterface.php @@ -20,8 +20,6 @@ interface NormalizerAwareInterface { /** * Sets the owning Normalizer object. - * - * @param NormalizerInterface $normalizer */ public function setNormalizer(NormalizerInterface $normalizer); } diff --git a/src/Symfony/Component/Templating/Loader/CacheLoader.php b/src/Symfony/Component/Templating/Loader/CacheLoader.php index 21849374c45a..ce6a678e793e 100644 --- a/src/Symfony/Component/Templating/Loader/CacheLoader.php +++ b/src/Symfony/Component/Templating/Loader/CacheLoader.php @@ -80,8 +80,7 @@ public function load(TemplateReferenceInterface $template) /** * Returns true if the template is still fresh. * - * @param TemplateReferenceInterface $template A template - * @param int $time The last modification time of the cached template (timestamp) + * @param int $time The last modification time of the cached template (timestamp) * * @return bool */ diff --git a/src/Symfony/Component/Templating/Loader/ChainLoader.php b/src/Symfony/Component/Templating/Loader/ChainLoader.php index 3e5f375cb79a..514cc3ed5cf2 100644 --- a/src/Symfony/Component/Templating/Loader/ChainLoader.php +++ b/src/Symfony/Component/Templating/Loader/ChainLoader.php @@ -60,8 +60,7 @@ public function load(TemplateReferenceInterface $template) /** * Returns true if the template is still fresh. * - * @param TemplateReferenceInterface $template A template - * @param int $time The last modification time of the cached template (timestamp) + * @param int $time The last modification time of the cached template (timestamp) * * @return bool */ diff --git a/src/Symfony/Component/Templating/Loader/FilesystemLoader.php b/src/Symfony/Component/Templating/Loader/FilesystemLoader.php index 016018cf1b2f..eff6a08be080 100644 --- a/src/Symfony/Component/Templating/Loader/FilesystemLoader.php +++ b/src/Symfony/Component/Templating/Loader/FilesystemLoader.php @@ -78,8 +78,7 @@ public function load(TemplateReferenceInterface $template) /** * Returns true if the template is still fresh. * - * @param TemplateReferenceInterface $template A template - * @param int $time The last modification time of the cached template (timestamp) + * @param int $time The last modification time of the cached template (timestamp) * * @return bool true if the template is still fresh, false otherwise */ diff --git a/src/Symfony/Component/Templating/Loader/LoaderInterface.php b/src/Symfony/Component/Templating/Loader/LoaderInterface.php index 0deb231bc063..7ecb39a3e83f 100644 --- a/src/Symfony/Component/Templating/Loader/LoaderInterface.php +++ b/src/Symfony/Component/Templating/Loader/LoaderInterface.php @@ -31,8 +31,7 @@ public function load(TemplateReferenceInterface $template); /** * Returns true if the template is still fresh. * - * @param TemplateReferenceInterface $template A template - * @param int $time The last modification time of the cached template (timestamp) + * @param int $time The last modification time of the cached template (timestamp) * * @return bool */ diff --git a/src/Symfony/Component/Templating/PhpEngine.php b/src/Symfony/Component/Templating/PhpEngine.php index 9da98266b975..35dcb026bcc6 100644 --- a/src/Symfony/Component/Templating/PhpEngine.php +++ b/src/Symfony/Component/Templating/PhpEngine.php @@ -43,9 +43,7 @@ class PhpEngine implements EngineInterface, \ArrayAccess private $evalParameters; /** - * @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance - * @param LoaderInterface $loader A loader instance - * @param HelperInterface[] $helpers An array of helper instances + * @param HelperInterface[] $helpers An array of helper instances */ public function __construct(TemplateNameParserInterface $parser, LoaderInterface $loader, array $helpers = []) { @@ -120,8 +118,7 @@ public function supports($name) /** * Evaluates a template. * - * @param Storage $template The template to render - * @param array $parameters An array of parameters to pass to the template + * @param array $parameters An array of parameters to pass to the template * * @return string|false The evaluated template, or false if the engine is unable to render the template * @@ -242,8 +239,7 @@ public function setHelpers(array $helpers) /** * Sets a helper. * - * @param HelperInterface $helper The helper instance - * @param string $alias An alias + * @param string $alias An alias */ public function set(HelperInterface $helper, $alias = null) { diff --git a/src/Symfony/Component/Translation/Dumper/DumperInterface.php b/src/Symfony/Component/Translation/Dumper/DumperInterface.php index 9965e8091f86..445b70189d50 100644 --- a/src/Symfony/Component/Translation/Dumper/DumperInterface.php +++ b/src/Symfony/Component/Translation/Dumper/DumperInterface.php @@ -24,8 +24,7 @@ interface DumperInterface /** * Dumps the message catalogue. * - * @param MessageCatalogue $messages The message catalogue - * @param array $options Options that are used by the dumper + * @param array $options Options that are used by the dumper */ public function dump(MessageCatalogue $messages, $options = []); } diff --git a/src/Symfony/Component/Translation/Dumper/FileDumper.php b/src/Symfony/Component/Translation/Dumper/FileDumper.php index 8457ecc7ecd7..91fc04977beb 100644 --- a/src/Symfony/Component/Translation/Dumper/FileDumper.php +++ b/src/Symfony/Component/Translation/Dumper/FileDumper.php @@ -103,9 +103,8 @@ public function dump(MessageCatalogue $messages, $options = []) /** * Transforms a domain of a message catalogue to its string representation. * - * @param MessageCatalogue $messages - * @param string $domain - * @param array $options + * @param string $domain + * @param array $options * * @return string representation */ diff --git a/src/Symfony/Component/Translation/Extractor/ChainExtractor.php b/src/Symfony/Component/Translation/Extractor/ChainExtractor.php index 69ee2dfc39e6..2683f5d24841 100644 --- a/src/Symfony/Component/Translation/Extractor/ChainExtractor.php +++ b/src/Symfony/Component/Translation/Extractor/ChainExtractor.php @@ -30,8 +30,7 @@ class ChainExtractor implements ExtractorInterface /** * Adds a loader to the translation extractor. * - * @param string $format The format of the loader - * @param ExtractorInterface $extractor The loader + * @param string $format The format of the loader */ public function addExtractor($format, ExtractorInterface $extractor) { diff --git a/src/Symfony/Component/Translation/Extractor/ExtractorInterface.php b/src/Symfony/Component/Translation/Extractor/ExtractorInterface.php index b4534fae7e9e..91de20192eee 100644 --- a/src/Symfony/Component/Translation/Extractor/ExtractorInterface.php +++ b/src/Symfony/Component/Translation/Extractor/ExtractorInterface.php @@ -24,8 +24,7 @@ interface ExtractorInterface /** * Extracts translation messages from files, a file or a directory to the catalogue. * - * @param string|array $resource Files, a file or a directory - * @param MessageCatalogue $catalogue The catalogue + * @param string|array $resource Files, a file or a directory */ public function extract($resource, MessageCatalogue $catalogue); diff --git a/src/Symfony/Component/Translation/Extractor/PhpExtractor.php b/src/Symfony/Component/Translation/Extractor/PhpExtractor.php index 3e1a152533b5..91c14ec384c9 100644 --- a/src/Symfony/Component/Translation/Extractor/PhpExtractor.php +++ b/src/Symfony/Component/Translation/Extractor/PhpExtractor.php @@ -195,9 +195,8 @@ private function getValue(\Iterator $tokenIterator) /** * Extracts trans message from PHP tokens. * - * @param array $tokens - * @param MessageCatalogue $catalog - * @param string $filename + * @param array $tokens + * @param string $filename */ protected function parseTokens($tokens, MessageCatalogue $catalog/*, string $filename*/) { diff --git a/src/Symfony/Component/Translation/IdentityTranslator.php b/src/Symfony/Component/Translation/IdentityTranslator.php index b15792a9b5be..fc88301e0adf 100644 --- a/src/Symfony/Component/Translation/IdentityTranslator.php +++ b/src/Symfony/Component/Translation/IdentityTranslator.php @@ -26,9 +26,6 @@ class IdentityTranslator implements LegacyTranslatorInterface, TranslatorInterfa private $selector; - /** - * @param MessageSelector|null $selector The message selector for pluralization - */ public function __construct(MessageSelector $selector = null) { $this->selector = $selector; diff --git a/src/Symfony/Component/Translation/Loader/XliffFileLoader.php b/src/Symfony/Component/Translation/Loader/XliffFileLoader.php index e67578304d49..fdb3c8421703 100644 --- a/src/Symfony/Component/Translation/Loader/XliffFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/XliffFileLoader.php @@ -73,9 +73,7 @@ private function extract($resource, MessageCatalogue $catalogue, string $domain) /** * Extract messages and metadata from DOMDocument into a MessageCatalogue. * - * @param \DOMDocument $dom Source to extract messages and metadata - * @param MessageCatalogue $catalogue Catalogue where we'll collect messages and metadata - * @param string $domain The domain + * @param string $domain The domain */ private function extractXliff1(\DOMDocument $dom, MessageCatalogue $catalogue, string $domain) { diff --git a/src/Symfony/Component/Translation/LoggingTranslator.php b/src/Symfony/Component/Translation/LoggingTranslator.php index b164321b822f..d0b06ff70c19 100644 --- a/src/Symfony/Component/Translation/LoggingTranslator.php +++ b/src/Symfony/Component/Translation/LoggingTranslator.php @@ -31,7 +31,6 @@ class LoggingTranslator implements TranslatorInterface, LegacyTranslatorInterfac /** * @param TranslatorInterface $translator The translator must implement TranslatorBagInterface - * @param LoggerInterface $logger */ public function __construct($translator, LoggerInterface $logger) { diff --git a/src/Symfony/Component/Translation/Reader/TranslationReader.php b/src/Symfony/Component/Translation/Reader/TranslationReader.php index e4554f39b4ee..2b9834521921 100644 --- a/src/Symfony/Component/Translation/Reader/TranslationReader.php +++ b/src/Symfony/Component/Translation/Reader/TranslationReader.php @@ -32,8 +32,7 @@ class TranslationReader implements TranslationReaderInterface /** * Adds a loader to the translation extractor. * - * @param string $format The format of the loader - * @param LoaderInterface $loader + * @param string $format The format of the loader */ public function addLoader($format, LoaderInterface $loader) { diff --git a/src/Symfony/Component/Translation/Reader/TranslationReaderInterface.php b/src/Symfony/Component/Translation/Reader/TranslationReaderInterface.php index 0aa55c6d367d..0b2ad332a94e 100644 --- a/src/Symfony/Component/Translation/Reader/TranslationReaderInterface.php +++ b/src/Symfony/Component/Translation/Reader/TranslationReaderInterface.php @@ -23,8 +23,7 @@ interface TranslationReaderInterface /** * Reads translation messages from a directory to the catalogue. * - * @param string $directory - * @param MessageCatalogue $catalogue + * @param string $directory */ public function read($directory, MessageCatalogue $catalogue); } diff --git a/src/Symfony/Component/Translation/Writer/TranslationWriter.php b/src/Symfony/Component/Translation/Writer/TranslationWriter.php index a44d24c13605..d40244313374 100644 --- a/src/Symfony/Component/Translation/Writer/TranslationWriter.php +++ b/src/Symfony/Component/Translation/Writer/TranslationWriter.php @@ -28,8 +28,7 @@ class TranslationWriter implements TranslationWriterInterface /** * Adds a dumper to the writer. * - * @param string $format The format of the dumper - * @param DumperInterface $dumper The dumper + * @param string $format The format of the dumper */ public function addDumper($format, DumperInterface $dumper) { @@ -65,9 +64,8 @@ public function getFormats() /** * Writes translation from the catalogue according to the selected format. * - * @param MessageCatalogue $catalogue The message catalogue to write - * @param string $format The format to use to dump the messages - * @param array $options Options that are passed to the dumper + * @param string $format The format to use to dump the messages + * @param array $options Options that are passed to the dumper * * @throws InvalidArgumentException */ diff --git a/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php b/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php index b07c08e2366c..f7c56bed09e7 100644 --- a/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php +++ b/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php @@ -24,9 +24,8 @@ interface TranslationWriterInterface /** * Writes translation from the catalogue according to the selected format. * - * @param MessageCatalogue $catalogue The message catalogue to write - * @param string $format The format to use to dump the messages - * @param array $options Options that are passed to the dumper + * @param string $format The format to use to dump the messages + * @param array $options Options that are passed to the dumper * * @throws InvalidArgumentException */ diff --git a/src/Symfony/Component/Validator/ConstraintValidatorInterface.php b/src/Symfony/Component/Validator/ConstraintValidatorInterface.php index b215346a4888..308c1e619137 100644 --- a/src/Symfony/Component/Validator/ConstraintValidatorInterface.php +++ b/src/Symfony/Component/Validator/ConstraintValidatorInterface.php @@ -20,16 +20,13 @@ interface ConstraintValidatorInterface { /** * Initializes the constraint validator. - * - * @param ExecutionContextInterface $context The current validation context */ public function initialize(ExecutionContextInterface $context); /** * Checks if the passed value is valid. * - * @param mixed $value The value that should be validated - * @param Constraint $constraint The constraint for the validation + * @param mixed $value The value that should be validated */ public function validate($value, Constraint $constraint); } diff --git a/src/Symfony/Component/Validator/ConstraintViolation.php b/src/Symfony/Component/Validator/ConstraintViolation.php index e615cd392158..22ce02843c21 100644 --- a/src/Symfony/Component/Validator/ConstraintViolation.php +++ b/src/Symfony/Component/Validator/ConstraintViolation.php @@ -32,22 +32,20 @@ class ConstraintViolation implements ConstraintViolationInterface /** * Creates a new constraint violation. * - * @param string $message The violation message - * @param string $messageTemplate The raw violation message - * @param array $parameters The parameters to substitute in the - * raw violation message - * @param mixed $root The value originally passed to the - * validator - * @param string $propertyPath The property path from the root - * value to the invalid value - * @param mixed $invalidValue The invalid value that caused this - * violation - * @param int|null $plural The number for determining the plural - * form when translating the message - * @param string|null $code The error code of the violation - * @param Constraint|null $constraint The constraint whose validation - * caused the violation - * @param mixed $cause The cause of the violation + * @param string $message The violation message + * @param string $messageTemplate The raw violation message + * @param array $parameters The parameters to substitute in the + * raw violation message + * @param mixed $root The value originally passed to the + * validator + * @param string $propertyPath The property path from the root + * value to the invalid value + * @param mixed $invalidValue The invalid value that caused this + * violation + * @param int|null $plural The number for determining the plural + * form when translating the message + * @param string|null $code The error code of the violation + * @param mixed $cause The cause of the violation */ public function __construct(?string $message, ?string $messageTemplate, array $parameters, $root, ?string $propertyPath, $invalidValue, int $plural = null, $code = null, Constraint $constraint = null, $cause = null) { diff --git a/src/Symfony/Component/Validator/ConstraintViolationListInterface.php b/src/Symfony/Component/Validator/ConstraintViolationListInterface.php index 47e986f51e50..0f38a6d904db 100644 --- a/src/Symfony/Component/Validator/ConstraintViolationListInterface.php +++ b/src/Symfony/Component/Validator/ConstraintViolationListInterface.php @@ -51,8 +51,7 @@ public function has($offset); /** * Sets a violation at a given offset. * - * @param int $offset The violation offset - * @param ConstraintViolationInterface $violation The violation + * @param int $offset The violation offset */ public function set($offset, ConstraintViolationInterface $violation); diff --git a/src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php b/src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php index 6737e57bccc0..f62fb03997f2 100644 --- a/src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php +++ b/src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php @@ -94,8 +94,7 @@ class CardSchemeValidator extends ConstraintValidator /** * Validates a creditcard belongs to a specified scheme. * - * @param mixed $value - * @param Constraint $constraint + * @param mixed $value */ public function validate($value, Constraint $constraint) { diff --git a/src/Symfony/Component/Validator/Constraints/LuhnValidator.php b/src/Symfony/Component/Validator/Constraints/LuhnValidator.php index 4a515c74cbbd..888e29cb7f10 100644 --- a/src/Symfony/Component/Validator/Constraints/LuhnValidator.php +++ b/src/Symfony/Component/Validator/Constraints/LuhnValidator.php @@ -33,8 +33,7 @@ class LuhnValidator extends ConstraintValidator /** * Validates a credit card number with the Luhn algorithm. * - * @param mixed $value - * @param Constraint $constraint + * @param mixed $value * * @throws UnexpectedTypeException when the given credit card number is no string */ diff --git a/src/Symfony/Component/Validator/Context/ExecutionContext.php b/src/Symfony/Component/Validator/Context/ExecutionContext.php index c97773e536aa..10eff4475b33 100644 --- a/src/Symfony/Component/Validator/Context/ExecutionContext.php +++ b/src/Symfony/Component/Validator/Context/ExecutionContext.php @@ -130,7 +130,6 @@ class ExecutionContext implements ExecutionContextInterface /** * Creates a new execution context. * - * @param ValidatorInterface $validator The validator * @param mixed $root The root value of the * validated object graph * @param TranslatorInterface $translator The translator diff --git a/src/Symfony/Component/Validator/Context/ExecutionContextFactoryInterface.php b/src/Symfony/Component/Validator/Context/ExecutionContextFactoryInterface.php index f3ab3dd68a74..bb014a12e741 100644 --- a/src/Symfony/Component/Validator/Context/ExecutionContextFactoryInterface.php +++ b/src/Symfony/Component/Validator/Context/ExecutionContextFactoryInterface.php @@ -26,9 +26,8 @@ interface ExecutionContextFactoryInterface /** * Creates a new execution context. * - * @param ValidatorInterface $validator The validator - * @param mixed $root The root value of the validated - * object graph + * @param mixed $root The root value of the validated + * object graph * * @return ExecutionContextInterface The new execution context */ diff --git a/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php b/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php index 2ab625b1561a..6976833f2adf 100644 --- a/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php +++ b/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php @@ -125,10 +125,9 @@ public function getObject(); /** * Sets the currently validated value. * - * @param mixed $value The validated value - * @param object|null $object The currently validated object - * @param MetadataInterface|null $metadata The validation metadata - * @param string $propertyPath The property path to the current value + * @param mixed $value The validated value + * @param object|null $object The currently validated object + * @param string $propertyPath The property path to the current value * * @internal Used by the validator engine. Should not be called by user * code. @@ -148,8 +147,6 @@ public function setGroup($group); /** * Sets the currently validated constraint. * - * @param Constraint $constraint The validated constraint - * * @internal Used by the validator engine. Should not be called by user * code. */ diff --git a/src/Symfony/Component/Validator/Mapping/ClassMetadata.php b/src/Symfony/Component/Validator/Mapping/ClassMetadata.php index 6e0256c29018..3d80756edf37 100644 --- a/src/Symfony/Component/Validator/Mapping/ClassMetadata.php +++ b/src/Symfony/Component/Validator/Mapping/ClassMetadata.php @@ -205,8 +205,7 @@ public function addConstraint(Constraint $constraint) /** * Adds a constraint to the given property. * - * @param string $property The name of the property - * @param Constraint $constraint The constraint + * @param string $property The name of the property * * @return $this */ @@ -246,8 +245,7 @@ public function addPropertyConstraints($property, array $constraints) * The name of the getter is assumed to be the name of the property with an * uppercased first letter and either the prefix "get" or "is". * - * @param string $property The name of the property - * @param Constraint $constraint The constraint + * @param string $property The name of the property * * @return $this */ @@ -269,9 +267,8 @@ public function addGetterConstraint($property, Constraint $constraint) /** * Adds a constraint to the getter of the given property. * - * @param string $property The name of the property - * @param string $method The name of the getter method - * @param Constraint $constraint The constraint + * @param string $property The name of the property + * @param string $method The name of the getter method * * @return $this */ diff --git a/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php b/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php index f96307a7fbfa..dc06899ae13b 100644 --- a/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php +++ b/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php @@ -50,13 +50,7 @@ class RecursiveContextualValidator implements ContextualValidatorInterface /** * Creates a validator for the given context. * - * @param ExecutionContextInterface $context The execution context - * @param MetadataFactoryInterface $metadataFactory The factory for - * fetching the metadata - * of validated objects - * @param ConstraintValidatorFactoryInterface $validatorFactory The factory for creating - * constraint validators - * @param ObjectInitializerInterface[] $objectInitializers The object initializers + * @param ObjectInitializerInterface[] $objectInitializers The object initializers */ public function __construct(ExecutionContextInterface $context, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory, array $objectInitializers = []) { diff --git a/src/Symfony/Component/Validator/Validator/RecursiveValidator.php b/src/Symfony/Component/Validator/Validator/RecursiveValidator.php index a258fd4a77d7..01a41e179190 100644 --- a/src/Symfony/Component/Validator/Validator/RecursiveValidator.php +++ b/src/Symfony/Component/Validator/Validator/RecursiveValidator.php @@ -32,14 +32,7 @@ class RecursiveValidator implements ValidatorInterface /** * Creates a new validator. * - * @param ExecutionContextFactoryInterface $contextFactory The factory for - * creating new contexts - * @param MetadataFactoryInterface $metadataFactory The factory for - * fetching the metadata - * of validated objects - * @param ConstraintValidatorFactoryInterface $validatorFactory The factory for creating - * constraint validators - * @param ObjectInitializerInterface[] $objectInitializers The object initializers + * @param ObjectInitializerInterface[] $objectInitializers The object initializers */ public function __construct(ExecutionContextFactoryInterface $contextFactory, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory, array $objectInitializers = []) { diff --git a/src/Symfony/Component/VarDumper/Cloner/AbstractCloner.php b/src/Symfony/Component/VarDumper/Cloner/AbstractCloner.php index 8e42337a75d2..6aec3e49249b 100644 --- a/src/Symfony/Component/VarDumper/Cloner/AbstractCloner.php +++ b/src/Symfony/Component/VarDumper/Cloner/AbstractCloner.php @@ -278,7 +278,6 @@ abstract protected function doClone($var); /** * Casts an object to an array representation. * - * @param Stub $stub The Stub for the casted object * @param bool $isNested True if the object is nested in the dumped structure * * @return array The object casted as array @@ -338,7 +337,6 @@ protected function castObject(Stub $stub, $isNested) /** * Casts a resource to an array representation. * - * @param Stub $stub The Stub for the casted resource * @param bool $isNested True if the object is nested in the dumped structure * * @return array The resource casted as array diff --git a/src/Symfony/Component/VarDumper/Cloner/DumperInterface.php b/src/Symfony/Component/VarDumper/Cloner/DumperInterface.php index cb498ff70657..c048e2d01efc 100644 --- a/src/Symfony/Component/VarDumper/Cloner/DumperInterface.php +++ b/src/Symfony/Component/VarDumper/Cloner/DumperInterface.php @@ -21,26 +21,23 @@ interface DumperInterface /** * Dumps a scalar value. * - * @param Cursor $cursor The Cursor position in the dump - * @param string $type The PHP type of the value being dumped - * @param string|int|float|bool $value The scalar value being dumped + * @param string $type The PHP type of the value being dumped + * @param string|int|float|bool $value The scalar value being dumped */ public function dumpScalar(Cursor $cursor, $type, $value); /** * Dumps a string. * - * @param Cursor $cursor The Cursor position in the dump - * @param string $str The string being dumped - * @param bool $bin Whether $str is UTF-8 or binary encoded - * @param int $cut The number of characters $str has been cut by + * @param string $str The string being dumped + * @param bool $bin Whether $str is UTF-8 or binary encoded + * @param int $cut The number of characters $str has been cut by */ public function dumpString(Cursor $cursor, $str, $bin, $cut); /** * Dumps while entering an hash. * - * @param Cursor $cursor The Cursor position in the dump * @param int $type A Cursor::HASH_* const for the type of hash * @param string $class The object class, resource type or array count * @param bool $hasChild When the dump of the hash has child item @@ -50,7 +47,6 @@ public function enterHash(Cursor $cursor, $type, $class, $hasChild); /** * Dumps while leaving an hash. * - * @param Cursor $cursor The Cursor position in the dump * @param int $type A Cursor::HASH_* const for the type of hash * @param string $class The object class, resource type or array count * @param bool $hasChild When the dump of the hash has child item diff --git a/src/Symfony/Component/VarDumper/Dumper/CliDumper.php b/src/Symfony/Component/VarDumper/Dumper/CliDumper.php index 5a0897ca0103..f390cd783256 100644 --- a/src/Symfony/Component/VarDumper/Dumper/CliDumper.php +++ b/src/Symfony/Component/VarDumper/Dumper/CliDumper.php @@ -318,9 +318,8 @@ public function leaveHash(Cursor $cursor, $type, $class, $hasChild, $cut) /** * Dumps an ellipsis for cut children. * - * @param Cursor $cursor The Cursor position in the dump - * @param bool $hasChild When the dump of the hash has child item - * @param int $cut The number of items the hash has been cut by + * @param bool $hasChild When the dump of the hash has child item + * @param int $cut The number of items the hash has been cut by */ protected function dumpEllipsis(Cursor $cursor, $hasChild, $cut) { @@ -337,8 +336,6 @@ protected function dumpEllipsis(Cursor $cursor, $hasChild, $cut) /** * Dumps a key in a hash structure. - * - * @param Cursor $cursor The Cursor position in the dump */ protected function dumpKey(Cursor $cursor) { diff --git a/src/Symfony/Component/Workflow/Dumper/DumperInterface.php b/src/Symfony/Component/Workflow/Dumper/DumperInterface.php index 797c63e32b59..ebed0743fcdd 100644 --- a/src/Symfony/Component/Workflow/Dumper/DumperInterface.php +++ b/src/Symfony/Component/Workflow/Dumper/DumperInterface.php @@ -25,9 +25,7 @@ interface DumperInterface /** * Dumps a workflow definition. * - * @param Definition $definition A Definition instance - * @param Marking|null $marking A Marking instance - * @param array $options An array of options + * @param array $options An array of options * * @return string The representation of the workflow */ diff --git a/src/Symfony/Component/Workflow/Event/Event.php b/src/Symfony/Component/Workflow/Event/Event.php index 09ba70bd306e..d2b5da2d4d82 100644 --- a/src/Symfony/Component/Workflow/Event/Event.php +++ b/src/Symfony/Component/Workflow/Event/Event.php @@ -29,10 +29,7 @@ class Event extends BaseEvent private $workflowName; /** - * @param object $subject - * @param Marking $marking - * @param Transition $transition - * @param WorkflowInterface $workflow + * @param object $subject */ public function __construct($subject, Marking $marking, Transition $transition = null, $workflow = null) { diff --git a/src/Symfony/Component/Workflow/Registry.php b/src/Symfony/Component/Workflow/Registry.php index f1a2df98e6eb..fe0c7ef3abe6 100644 --- a/src/Symfony/Component/Workflow/Registry.php +++ b/src/Symfony/Component/Workflow/Registry.php @@ -24,7 +24,6 @@ class Registry private $workflows = []; /** - * @param Workflow $workflow * @param SupportStrategyInterface $supportStrategy * * @deprecated since Symfony 4.1, use addWorkflow() instead diff --git a/src/Symfony/Component/Workflow/SupportStrategy/SupportStrategyInterface.php b/src/Symfony/Component/Workflow/SupportStrategy/SupportStrategyInterface.php index 3627591fac29..30231da41161 100644 --- a/src/Symfony/Component/Workflow/SupportStrategy/SupportStrategyInterface.php +++ b/src/Symfony/Component/Workflow/SupportStrategy/SupportStrategyInterface.php @@ -21,8 +21,7 @@ interface SupportStrategyInterface { /** - * @param Workflow $workflow - * @param object $subject + * @param object $subject * * @return bool */ diff --git a/src/Symfony/Component/Workflow/Validator/DefinitionValidatorInterface.php b/src/Symfony/Component/Workflow/Validator/DefinitionValidatorInterface.php index 1282c966b7d3..6631a9386cf9 100644 --- a/src/Symfony/Component/Workflow/Validator/DefinitionValidatorInterface.php +++ b/src/Symfony/Component/Workflow/Validator/DefinitionValidatorInterface.php @@ -21,8 +21,7 @@ interface DefinitionValidatorInterface { /** - * @param Definition $definition - * @param string $name + * @param string $name * * @throws InvalidDefinitionException on invalid definition */