From 5c946ecfb6cda57762bfe8e5dd393006e87e9311 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Sun, 12 Nov 2017 17:58:58 +0100 Subject: [PATCH 1/2] [cs] remove unused doc blocks --- .../Doctrine/DataCollector/DoctrineDataCollector.php | 1 - .../DependencyInjection/AbstractDoctrineExtension.php | 6 ------ src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php | 1 - src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php | 1 - .../Validator/Constraints/UniqueEntityValidator.php | 1 - .../CacheWarmer/AbstractPhpFileCacheWarmer.php | 1 - .../CacheWarmer/AnnotationsCacheWarmer.php | 1 - .../Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php | 2 -- .../FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php | 1 - .../FrameworkBundle/Console/Descriptor/Descriptor.php | 4 ---- .../Bundle/FrameworkBundle/HttpCache/HttpCache.php | 2 -- .../Bundle/FrameworkBundle/Routing/DelegatingLoader.php | 4 ---- src/Symfony/Bundle/FrameworkBundle/Routing/Router.php | 1 - .../FrameworkBundle/Templating/Helper/FormHelper.php | 1 - .../FrameworkBundle/Templating/Loader/TemplateLocator.php | 1 - .../Tests/Controller/ControllerTraitTest.php | 2 -- .../Bundle/FrameworkBundle/Translation/Translator.php | 2 -- .../Security/Factory/AbstractFactory.php | 1 - .../Bundle/TwigBundle/Controller/ExceptionController.php | 2 -- src/Symfony/Bundle/TwigBundle/TemplateIterator.php | 1 - .../DependencyInjection/WebProfilerExtension.php | 1 - .../Bundle/WebProfilerBundle/Profiler/TemplateManager.php | 1 - src/Symfony/Component/BrowserKit/Client.php | 2 -- src/Symfony/Component/Cache/Adapter/ArrayAdapter.php | 1 - .../Component/Cache/DataCollector/CacheDataCollector.php | 1 - src/Symfony/Component/Cache/Simple/ArrayCache.php | 1 - src/Symfony/Component/Cache/Simple/RedisCache.php | 2 -- src/Symfony/Component/Config/Definition/BaseNode.php | 2 -- .../Component/Console/Descriptor/XmlDescriptor.php | 1 - src/Symfony/Component/Console/Helper/DescriptorHelper.php | 3 --- .../Component/Console/Helper/ProgressIndicator.php | 5 ----- src/Symfony/Component/Console/Helper/QuestionHelper.php | 5 ----- src/Symfony/Component/Console/Helper/Table.php | 3 --- .../CssSelector/Exception/SyntaxErrorException.php | 1 - src/Symfony/Component/CssSelector/Node/AbstractNode.php | 3 --- src/Symfony/Component/CssSelector/Node/FunctionNode.php | 2 -- .../CssSelector/XPath/Extension/CombinationExtension.php | 3 --- .../Compiler/AbstractRecursivePass.php | 2 -- .../DependencyInjection/Compiler/AutowirePass.php | 1 - .../Compiler/ServiceLocatorTagPass.php | 1 - .../Component/DependencyInjection/ContainerBuilder.php | 4 ---- src/Symfony/Component/DependencyInjection/Definition.php | 2 -- .../Component/DependencyInjection/Dumper/XmlDumper.php | 2 -- .../Component/DependencyInjection/Loader/FileLoader.php | 1 - .../DependencyInjection/Loader/XmlFileLoader.php | 1 - .../DependencyInjection/Loader/YamlFileLoader.php | 1 - .../Tests/Fixtures/includes/autowiring_classes.php | 2 +- .../Component/ExpressionLanguage/ExpressionLanguage.php | 1 - src/Symfony/Component/Form/Button.php | 1 - src/Symfony/Component/Form/ButtonBuilder.php | 4 ---- .../Extension/Core/EventListener/ResizeFormListener.php | 2 -- .../DependencyInjection/DependencyInjectionExtension.php | 2 -- src/Symfony/Component/Form/Tests/AbstractFormTest.php | 2 -- src/Symfony/Component/Form/Tests/CompoundFormTest.php | 2 +- .../Form/Tests/Extension/Core/Type/FormTypeTest.php | 2 +- .../Validator/ViolationMapper/ViolationMapperTest.php | 2 -- src/Symfony/Component/Form/Tests/FormBuilderTest.php | 2 +- src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php | 1 - src/Symfony/Component/Form/Tests/SimpleFormTest.php | 6 +++--- src/Symfony/Component/HttpFoundation/Request.php | 4 ++-- src/Symfony/Component/HttpFoundation/RequestMatcher.php | 1 - src/Symfony/Component/HttpFoundation/Session/Session.php | 1 - src/Symfony/Component/HttpKernel/Config/FileLocator.php | 1 - .../HttpKernel/EventListener/FragmentListener.php | 1 - .../Component/HttpKernel/EventListener/LocaleListener.php | 1 - .../HttpKernel/EventListener/ProfilerListener.php | 2 -- .../Component/HttpKernel/EventListener/RouterListener.php | 5 ----- .../HttpKernel/Exception/AccessDeniedHttpException.php | 1 - .../HttpKernel/Exception/BadRequestHttpException.php | 1 - .../HttpKernel/Exception/ConflictHttpException.php | 1 - .../Component/HttpKernel/Exception/GoneHttpException.php | 1 - .../HttpKernel/Exception/LengthRequiredHttpException.php | 1 - .../Exception/MethodNotAllowedHttpException.php | 1 - .../HttpKernel/Exception/NotAcceptableHttpException.php | 1 - .../HttpKernel/Exception/NotFoundHttpException.php | 1 - .../Exception/PreconditionFailedHttpException.php | 1 - .../Exception/PreconditionRequiredHttpException.php | 1 - .../Exception/ServiceUnavailableHttpException.php | 1 - .../HttpKernel/Exception/TooManyRequestsHttpException.php | 1 - .../HttpKernel/Exception/UnauthorizedHttpException.php | 1 - .../Exception/UnprocessableEntityHttpException.php | 1 - .../Exception/UnsupportedMediaTypeHttpException.php | 1 - .../Fragment/AbstractSurrogateFragmentRenderer.php | 2 -- .../HttpKernel/Fragment/HIncludeFragmentRenderer.php | 2 -- .../HttpKernel/Fragment/RoutableFragmentRenderer.php | 2 -- src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php | 6 ------ src/Symfony/Component/HttpKernel/HttpKernel.php | 3 --- .../Intl/Data/Generator/AbstractDataGenerator.php | 5 ----- .../Tests/DateFormatter/AbstractIntlDateFormatterTest.php | 5 +---- src/Symfony/Component/Ldap/Entry.php | 1 - src/Symfony/Component/Lock/Store/CombinedStore.php | 1 - src/Symfony/Component/PropertyAccess/PropertyAccess.php | 2 -- .../Component/PropertyInfo/Extractor/PhpDocExtractor.php | 1 - src/Symfony/Component/Routing/Loader/YamlFileLoader.php | 2 -- .../Component/Routing/Matcher/Dumper/PhpMatcherDumper.php | 3 --- .../Routing/Matcher/Dumper/StaticPrefixCollection.php | 2 -- src/Symfony/Component/Routing/RouteCollection.php | 1 - src/Symfony/Component/Routing/RouteCollectionBuilder.php | 4 ---- src/Symfony/Component/Routing/Router.php | 1 - .../Core/Authentication/Token/RememberMeToken.php | 2 -- .../Component/Security/Core/Authorization/Voter/Voter.php | 1 - .../Component/Security/Core/User/LdapUserProvider.php | 1 - .../Security/Guard/AbstractGuardAuthenticator.php | 1 - .../Guard/Firewall/GuardAuthenticationListener.php | 2 -- .../Guard/Provider/GuardAuthenticationProvider.php | 1 - src/Symfony/Component/Security/Http/AccessMap.php | 1 - .../DefaultAuthenticationSuccessHandler.php | 1 - .../Http/EntryPoint/FormAuthenticationEntryPoint.php | 2 -- .../Component/Security/Http/Firewall/ContextListener.php | 1 - .../Component/Security/Http/Firewall/LogoutListener.php | 3 --- .../Security/Http/Firewall/SwitchUserListener.php | 1 - src/Symfony/Component/Security/Http/HttpUtils.php | 3 --- src/Symfony/Component/Serializer/Encoder/ChainEncoder.php | 1 - src/Symfony/Component/Serializer/Encoder/XmlEncoder.php | 1 - .../Serializer/Normalizer/AbstractNormalizer.php | 7 ------- .../Serializer/Normalizer/AbstractObjectNormalizer.php | 4 ---- src/Symfony/Component/Templating/PhpEngine.php | 1 - src/Symfony/Component/Translation/Dumper/FileDumper.php | 2 -- .../Component/Translation/Extractor/PhpExtractor.php | 1 - src/Symfony/Component/Translation/LoggingTranslator.php | 1 - .../Component/Translation/Reader/TranslationReader.php | 1 - src/Symfony/Component/Translation/Translator.php | 1 - .../Validator/Constraints/CardSchemeValidator.php | 1 - .../Component/Validator/Constraints/LuhnValidator.php | 1 - .../Validator/Test/ConstraintValidatorTestCase.php | 2 -- src/Symfony/Component/Workflow/Event/Event.php | 3 --- src/Symfony/Component/Workflow/Registry.php | 1 - src/Symfony/Component/Workflow/Transition.php | 1 - src/Symfony/Component/Workflow/Workflow.php | 2 -- src/Symfony/Component/Yaml/Inline.php | 2 -- src/Symfony/Component/Yaml/Parser.php | 8 -------- src/Symfony/Component/Yaml/Tests/ParserTest.php | 2 -- 132 files changed, 10 insertions(+), 244 deletions(-) diff --git a/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php b/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php index e605c057e353f..501afee922d8c 100644 --- a/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php +++ b/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php @@ -45,7 +45,6 @@ public function __construct(ManagerRegistry $registry) * Adds the stack logger for a connection. * * @param string $name - * @param DebugStack $logger */ 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 5c04c5c97aecc..7cae78dcb0612 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php @@ -36,7 +36,6 @@ abstract class AbstractDoctrineExtension extends Extension /** * @param array $objectManager A configured object manager - * @param ContainerBuilder $container A ContainerBuilder instance * * @throws \InvalidArgumentException */ @@ -117,7 +116,6 @@ protected function setMappingDriverAlias($mappingConfig, $mappingName) /** * Register the mapping driver configuration for later use with the object managers metadata driver chain. * - * @param array $mappingConfig * @param string $mappingName * * @throws \InvalidArgumentException @@ -173,7 +171,6 @@ 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 */ protected function registerMappingDrivers($objectManager, ContainerBuilder $container) { @@ -225,7 +222,6 @@ protected function registerMappingDrivers($objectManager, ContainerBuilder $cont /** * Assertion if the specified mapping information is valid. * - * @param array $mappingConfig * @param string $objectManagerName * * @throws \InvalidArgumentException @@ -253,7 +249,6 @@ 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 * * @return string|null A metadata driver short name, if one can be detected */ @@ -287,7 +282,6 @@ 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 * * @throws \InvalidArgumentException in case of unknown driver type diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php index 25b0aefecfe8c..dbbcba7c46512 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php @@ -268,7 +268,6 @@ public function configureOptions(OptionsResolver $resolver) /** * Return the default loader object. * - * @param ObjectManager $manager * @param mixed $queryBuilder * @param string $class * diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php index 4b07e83652c66..0287c6a121b8d 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php @@ -46,7 +46,6 @@ public function configureOptions(OptionsResolver $resolver) /** * Return the default loader object. * - * @param ObjectManager $manager * @param QueryBuilder $queryBuilder * @param string $class * diff --git a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php index e03ef3c555b37..8488cdc876cf6 100644 --- a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php +++ b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php @@ -35,7 +35,6 @@ public function __construct(ManagerRegistry $registry) /** * @param object $entity - * @param Constraint $constraint * * @throws UnexpectedTypeException * @throws ConstraintDefinitionException diff --git a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php index cbd864d2ede3e..15c9d2cc27ecd 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php @@ -84,7 +84,6 @@ protected function warmUpPhpArrayAdapter(PhpArrayAdapter $phpArrayAdapter, array /** * @param string $cacheDir - * @param ArrayAdapter $arrayAdapter * * @return bool false if there is nothing to warm-up */ diff --git a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php index e5839b76901de..e539225a7cb66 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php @@ -30,7 +30,6 @@ class AnnotationsCacheWarmer extends AbstractPhpFileCacheWarmer private $excludeRegexp; /** - * @param Reader $annotationReader * @param string $phpArrayFile The PHP file where annotations are cached * @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered annotations are cached */ diff --git a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php index cd1e4806b71b6..6c5a8cafd8d35 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php @@ -30,8 +30,6 @@ 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 */ public function __construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir) diff --git a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php index 51a965f71baa2..f51ab62ee208e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php @@ -33,7 +33,6 @@ class ValidatorCacheWarmer extends AbstractPhpFileCacheWarmer private $validatorBuilder; /** - * @param ValidatorBuilderInterface $validatorBuilder * @param string $phpArrayFile The PHP file where metadata are cached * @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered metadata are cached */ diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php index 043b4fff6e078..783477d41ab6d 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php @@ -127,7 +127,6 @@ abstract protected function describeContainerTags(ContainerBuilder $builder, arr * * name: name of described service * * @param Definition|Alias|object $service - * @param array $options * @param ContainerBuilder|null $builder */ abstract protected function describeContainerService($service, array $options = array(), ContainerBuilder $builder = null); @@ -167,7 +166,6 @@ abstract protected function describeEventDispatcherListeners(EventDispatcherInte * Describes a callable. * * @param callable $callable - * @param array $options */ abstract protected function describeCallable($callable, array $options = array()); @@ -214,7 +212,6 @@ protected function formatParameter($value) } /** - * @param ContainerBuilder $builder * @param string $serviceId * * @return mixed @@ -235,7 +232,6 @@ protected function resolveServiceDefinition(ContainerBuilder $builder, $serviceI } /** - * @param ContainerBuilder $builder * @param bool $showPrivate * * @return array diff --git a/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php b/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php index 5877caaf592ac..6b70403c25c00 100644 --- a/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php +++ b/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php @@ -29,7 +29,6 @@ abstract class HttpCache extends BaseHttpCache protected $kernel; /** - * @param HttpKernelInterface $kernel An HttpKernelInterface instance * @param string $cacheDir The cache directory (default used if null) */ public function __construct(HttpKernelInterface $kernel, string $cacheDir = null) @@ -43,7 +42,6 @@ public function __construct(HttpKernelInterface $kernel, string $cacheDir = null /** * Forwards the Request to the backend and returns the Response. * - * @param Request $request A Request instance * @param bool $raw Whether to catch exceptions or not * @param Response $entry A Response instance (the stale entry if present, null otherwise) * diff --git a/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php b/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php index 61944c1a5ad5c..d365142c5e692 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php +++ b/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php @@ -29,10 +29,6 @@ class DelegatingLoader extends BaseDelegatingLoader protected $parser; private $loading = false; - /** - * @param ControllerNameParser $parser A ControllerNameParser instance - * @param LoaderResolverInterface $resolver A LoaderResolverInterface instance - */ public function __construct(ControllerNameParser $parser, LoaderResolverInterface $resolver) { $this->parser = $parser; diff --git a/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php b/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php index 0148dbf73d86a..e4a41d2043042 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php +++ b/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php @@ -33,7 +33,6 @@ class Router extends BaseRouter implements WarmableInterface, ServiceSubscriberI private $collectedParameters = array(); /** - * @param ContainerInterface $container A ContainerInterface instance * @param mixed $resource The main resource to load * @param array $options An array of options * @param RequestContext $context The context diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php index 0ad1ff85b24a5..4d238c48db892 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php @@ -43,7 +43,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 */ diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php index 8f9b256d6a163..524e1198c7e31 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php @@ -27,7 +27,6 @@ class TemplateLocator implements FileLocatorInterface private $cacheHits = array(); /** - * @param FileLocatorInterface $locator A FileLocatorInterface instance * @param string $cacheDir The cache path */ public function __construct(FileLocatorInterface $locator, string $cacheDir = null) diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTraitTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTraitTest.php index a208775cf23d7..53687f99c87bd 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTraitTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTraitTest.php @@ -98,8 +98,6 @@ public function testGetUserWithEmptyContainer() } /** - * @param $token - * * @return Container */ private function getContainerWithTokenStorage($token = null) diff --git a/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php b/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php index 3aca2386771bf..5461a021b090e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php +++ b/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php @@ -53,9 +53,7 @@ class Translator extends BaseTranslator implements WarmableInterface * * debug: Whether to enable debugging or not (false by default) * * resource_files: List of translation resources available grouped by locale. * - * @param ContainerInterface $container A ContainerInterface instance * @param MessageFormatterInterface $formatter The message formatter - * @param string $defaultLocale * @param array $loaderIds An array of loader Ids * @param array $options An array of options * diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php index d1b7980faa8a6..dcea99642ff07 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php @@ -98,7 +98,6 @@ 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 diff --git a/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php b/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php index e4ad1b0daaaa0..6961d622ed386 100644 --- a/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php +++ b/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php @@ -32,7 +32,6 @@ class ExceptionController protected $debug; /** - * @param Environment $twig * @param bool $debug Show error (false) or exception (true) pages by default */ public function __construct(Environment $twig, bool $debug) @@ -88,7 +87,6 @@ protected function getAndCleanOutputBuffering($startObLevel) } /** - * @param Request $request * @param string $format * @param int $code An HTTP response status code * @param bool $showException diff --git a/src/Symfony/Bundle/TwigBundle/TemplateIterator.php b/src/Symfony/Bundle/TwigBundle/TemplateIterator.php index 1b700a2d36b24..d21a26ba7fed7 100644 --- a/src/Symfony/Bundle/TwigBundle/TemplateIterator.php +++ b/src/Symfony/Bundle/TwigBundle/TemplateIterator.php @@ -27,7 +27,6 @@ class TemplateIterator implements \IteratorAggregate private $paths; /** - * @param KernelInterface $kernel A KernelInterface instance * @param string $rootDir The directory where global templates can be stored * @param array $paths Additional Twig paths to warm */ diff --git a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php index e8e3ee87e9c1c..e8ce329c4410c 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php +++ b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php @@ -35,7 +35,6 @@ class WebProfilerExtension extends Extension * Loads the web profiler configuration. * * @param array $configs An array of configuration settings - * @param ContainerBuilder $container A ContainerBuilder instance */ public function load(array $configs, ContainerBuilder $container) { diff --git a/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php b/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php index 3bc642f428ffe..9e716b0b39413 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php @@ -42,7 +42,6 @@ public function __construct(Profiler $profiler, Environment $twig, array $templa /** * Gets the template name for a given panel. * - * @param Profile $profile * @param string $panel * * @return mixed diff --git a/src/Symfony/Component/BrowserKit/Client.php b/src/Symfony/Component/BrowserKit/Client.php index 9c96a91dc3446..b6bf5b0af0578 100644 --- a/src/Symfony/Component/BrowserKit/Client.php +++ b/src/Symfony/Component/BrowserKit/Client.php @@ -247,7 +247,6 @@ public function click(Link $link) /** * Submits a form. * - * @param Form $form A Form instance * @param array $values An array of form field values * * @return Crawler @@ -585,7 +584,6 @@ 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()) * * @return Crawler diff --git a/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php b/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php index fee7ed6d906d5..a7e67bcd84f47 100644 --- a/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php @@ -27,7 +27,6 @@ class ArrayAdapter implements AdapterInterface, LoggerAwareInterface, Resettable private $createCacheItem; /** - * @param int $defaultLifetime * @param bool $storeSerialized Disabling serialization can lead to cache corruptions when storing mutable values but increases performance otherwise */ public function __construct(int $defaultLifetime = 0, bool $storeSerialized = true) diff --git a/src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php b/src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php index 33e08f167fbdc..cbd4285c236e2 100644 --- a/src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php +++ b/src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php @@ -31,7 +31,6 @@ class CacheDataCollector extends DataCollector implements LateDataCollectorInter /** * @param string $name - * @param TraceableAdapter $instance */ public function addInstance($name, TraceableAdapter $instance) { diff --git a/src/Symfony/Component/Cache/Simple/ArrayCache.php b/src/Symfony/Component/Cache/Simple/ArrayCache.php index 452b42853ef2c..6763d1654e11c 100644 --- a/src/Symfony/Component/Cache/Simple/ArrayCache.php +++ b/src/Symfony/Component/Cache/Simple/ArrayCache.php @@ -31,7 +31,6 @@ class ArrayCache implements CacheInterface, LoggerAwareInterface, ResettableInte private $defaultLifetime; /** - * @param int $defaultLifetime * @param bool $storeSerialized Disabling serialization can lead to cache corruptions when storing mutable values but increases performance otherwise */ public function __construct(int $defaultLifetime = 0, bool $storeSerialized = true) diff --git a/src/Symfony/Component/Cache/Simple/RedisCache.php b/src/Symfony/Component/Cache/Simple/RedisCache.php index 45bb5ff799c8a..94bc5efe22a6b 100644 --- a/src/Symfony/Component/Cache/Simple/RedisCache.php +++ b/src/Symfony/Component/Cache/Simple/RedisCache.php @@ -19,8 +19,6 @@ class RedisCache extends AbstractCache /** * @param \Redis|\RedisArray|\RedisCluster|\Predis\Client $redisClient - * @param string $namespace - * @param int $defaultLifetime */ public function __construct($redisClient, string $namespace = '', int $defaultLifetime = 0) { diff --git a/src/Symfony/Component/Config/Definition/BaseNode.php b/src/Symfony/Component/Config/Definition/BaseNode.php index d082a6e8d2c8d..2dddf06eeed57 100644 --- a/src/Symfony/Component/Config/Definition/BaseNode.php +++ b/src/Symfony/Component/Config/Definition/BaseNode.php @@ -299,8 +299,6 @@ final public function normalize($value) /** * Normalizes the value before any other normalization is applied. * - * @param $value - * * @return $value The normalized array value */ protected function preNormalize($value) diff --git a/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php b/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php index 0d239868c4c99..50d074cafb76c 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/Helper/DescriptorHelper.php b/src/Symfony/Component/Console/Helper/DescriptorHelper.php index 6f5c81834ccd5..a3870349502f8 100644 --- a/src/Symfony/Component/Console/Helper/DescriptorHelper.php +++ b/src/Symfony/Component/Console/Helper/DescriptorHelper.php @@ -48,9 +48,7 @@ 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 * * @throws InvalidArgumentException when the given format is not supported */ @@ -73,7 +71,6 @@ public function describe(OutputInterface $output, $object, array $options = arra * Registers a descriptor. * * @param string $format - * @param DescriptorInterface $descriptor * * @return $this */ diff --git a/src/Symfony/Component/Console/Helper/ProgressIndicator.php b/src/Symfony/Component/Console/Helper/ProgressIndicator.php index e6094647fa312..03df90e5e3e6a 100644 --- a/src/Symfony/Component/Console/Helper/ProgressIndicator.php +++ b/src/Symfony/Component/Console/Helper/ProgressIndicator.php @@ -34,7 +34,6 @@ 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 @@ -77,8 +76,6 @@ public function setMessage($message) /** * Starts the indicator output. - * - * @param $message */ public function start($message) { @@ -122,8 +119,6 @@ public function advance() /** * Finish the indicator with message. - * - * @param $message */ public function finish($message) { diff --git a/src/Symfony/Component/Console/Helper/QuestionHelper.php b/src/Symfony/Component/Console/Helper/QuestionHelper.php index ddfddd6fcdd1e..515214cbe8806 100644 --- a/src/Symfony/Component/Console/Helper/QuestionHelper.php +++ b/src/Symfony/Component/Console/Helper/QuestionHelper.php @@ -167,8 +167,6 @@ protected function writeError(OutputInterface $output, \Exception $error) /** * Autocompletes a question. * - * @param OutputInterface $output - * @param Question $question * @param resource $inputStream */ private function autocomplete(OutputInterface $output, Question $question, $inputStream): string @@ -284,7 +282,6 @@ private function autocomplete(OutputInterface $output, Question $question, $inpu /** * Gets a hidden response from user. * - * @param OutputInterface $output An Output instance * @param resource $inputStream The handler resource * * @throws RuntimeException In case the fallback is deactivated and the response cannot be hidden @@ -344,8 +341,6 @@ private function getHiddenResponse(OutputInterface $output, $inputStream): strin * Validates an attempt. * * @param callable $interviewer A callable that will ask for a question and return the result - * @param OutputInterface $output An Output instance - * @param Question $question A Question instance * * @return mixed The validated response * diff --git a/src/Symfony/Component/Console/Helper/Table.php b/src/Symfony/Component/Console/Helper/Table.php index 6e5820e405a9d..da7edc8cd36ea 100644 --- a/src/Symfony/Component/Console/Helper/Table.php +++ b/src/Symfony/Component/Console/Helper/Table.php @@ -85,7 +85,6 @@ public function __construct(OutputInterface $output) * Sets a style definition. * * @param string $name The style name - * @param TableStyle $style A TableStyle instance */ public static function setStyleDefinition($name, TableStyle $style) { @@ -193,8 +192,6 @@ public function setColumnWidth($columnIndex, $width) /** * Sets the minimum width of all columns. * - * @param array $widths - * * @return $this */ public function setColumnWidths(array $widths) diff --git a/src/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php b/src/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php index cb3158a5536dc..1200c979ea6ac 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/AbstractNode.php b/src/Symfony/Component/CssSelector/Node/AbstractNode.php index 123ef1b117a67..03e1117c882c9 100644 --- a/src/Symfony/Component/CssSelector/Node/AbstractNode.php +++ b/src/Symfony/Component/CssSelector/Node/AbstractNode.php @@ -28,9 +28,6 @@ abstract class AbstractNode implements NodeInterface */ private $nodeName; - /** - * @return string - */ public function getNodeName(): string { if (null === $this->nodeName) { diff --git a/src/Symfony/Component/CssSelector/Node/FunctionNode.php b/src/Symfony/Component/CssSelector/Node/FunctionNode.php index 89b6437801d82..e15a7742e548b 100644 --- a/src/Symfony/Component/CssSelector/Node/FunctionNode.php +++ b/src/Symfony/Component/CssSelector/Node/FunctionNode.php @@ -30,8 +30,6 @@ class FunctionNode extends AbstractNode private $arguments; /** - * @param NodeInterface $selector - * @param string $name * @param Token[] $arguments */ public function __construct(NodeInterface $selector, string $name, array $arguments = array()) diff --git a/src/Symfony/Component/CssSelector/XPath/Extension/CombinationExtension.php b/src/Symfony/Component/CssSelector/XPath/Extension/CombinationExtension.php index 85181fd93e876..071240375da9a 100644 --- a/src/Symfony/Component/CssSelector/XPath/Extension/CombinationExtension.php +++ b/src/Symfony/Component/CssSelector/XPath/Extension/CombinationExtension.php @@ -38,9 +38,6 @@ public function getCombinationTranslators(): array ); } - /** - * @return XPathExpr - */ public function translateDescendant(XPathExpr $xpath, XPathExpr $combinedXpath): XPathExpr { return $xpath->join('/descendant-or-self::*/', $combinedXpath); diff --git a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php index cbe9b30468f51..3bc1852294305 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php @@ -81,7 +81,6 @@ protected function processValue($value, $isRoot = false) } /** - * @param Definition $definition * @param bool $required * * @return \ReflectionFunctionAbstract|null @@ -133,7 +132,6 @@ protected function getConstructor(Definition $definition, $required) } /** - * @param Definition $definition * @param string $method * * @throws RuntimeException diff --git a/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php b/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php index afda55c94f21b..913571c088aef 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php @@ -119,7 +119,6 @@ private function doProcessValue($value, $isRoot = false) /** * @param \ReflectionClass $reflectionClass - * @param array $methodCalls * * @return array */ diff --git a/src/Symfony/Component/DependencyInjection/Compiler/ServiceLocatorTagPass.php b/src/Symfony/Component/DependencyInjection/Compiler/ServiceLocatorTagPass.php index 2c4a09f8476f9..3b2f4ff696c77 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/ServiceLocatorTagPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/ServiceLocatorTagPass.php @@ -70,7 +70,6 @@ protected function processValue($value, $isRoot = false) } /** - * @param ContainerBuilder $container * @param Reference[] $refMap * * @return Reference diff --git a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php index f2d121be5a9fd..4ea5bd3842492 100644 --- a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php +++ b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php @@ -360,8 +360,6 @@ public function getReflectionClass(?string $class, bool $throw = true): ?\Reflec * @param bool|string $trackContents Whether to track contents of the given resource. If a string is passed, * it will be used as pattern for tracking contents of the requested directory * - * @return bool - * * @final */ public function fileExists(string $path, $trackContents = true): bool @@ -898,7 +896,6 @@ public function getDefinitions() * Sets a service definition. * * @param string $id The service identifier - * @param Definition $definition A Definition instance * * @return Definition the service definition * @@ -1453,7 +1450,6 @@ private function callMethod($service, $call) /** * Shares a given service in the container. * - * @param Definition $definition * @param object $service * @param string|null $id */ diff --git a/src/Symfony/Component/DependencyInjection/Definition.php b/src/Symfony/Component/DependencyInjection/Definition.php index 1621b1e723a7a..95d3c3609553c 100644 --- a/src/Symfony/Component/DependencyInjection/Definition.php +++ b/src/Symfony/Component/DependencyInjection/Definition.php @@ -845,8 +845,6 @@ public function getBindings() * injected in the matching parameters (of the constructor, of methods * called and of controller actions). * - * @param array $bindings - * * @return $this */ public function setBindings(array $bindings) diff --git a/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php index defbc7ae89da4..2786885c7fe23 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php @@ -215,7 +215,6 @@ private function addService($definition, $id, \DOMElement $parent) * Adds a service alias. * * @param string $alias - * @param Alias $id * @param \DOMElement $parent */ private function addServiceAlias($alias, Alias $id, \DOMElement $parent) @@ -254,7 +253,6 @@ private function addServices(\DOMElement $parent) /** * Converts parameters. * - * @param array $parameters * @param string $type * @param \DOMElement $parent * @param string $keyAttribute diff --git a/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php b/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php index 55809e517852b..39578c0919bc0 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php @@ -67,7 +67,6 @@ public function registerClasses(Definition $prototype, $namespace, $resource, $e * Registers a definition in the container with its instanceof-conditionals. * * @param string $id - * @param Definition $definition */ protected function setDefinition($id, Definition $definition) { diff --git a/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php b/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php index a7e6ed4bf042a..14f37c464db64 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php @@ -195,7 +195,6 @@ private function getServiceDefaults(\DOMDocument $xml, $file) * * @param \DOMElement $service * @param string $file - * @param array $defaults * * @return Definition|null */ diff --git a/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php b/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php index 346531bc6a952..41db49489ef09 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php @@ -304,7 +304,6 @@ private function isUsingShortSyntax(array $service): bool * @param string $id * @param array|string $service * @param string $file - * @param array $defaults * * @throws InvalidArgumentException When tags are invalid */ diff --git a/src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes.php b/src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes.php index bf99eff6a2838..b1baa9cbc0b7e 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes.php @@ -198,7 +198,7 @@ public function __construct(A $a, $foo = 'default_val', Lille $lille) } } -/* +/** * Classes used for testing createResourceForClass */ class ClassForResource diff --git a/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php b/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php index 703d393715598..de9d9b18bb7c5 100644 --- a/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php +++ b/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php @@ -29,7 +29,6 @@ class ExpressionLanguage protected $functions = array(); /** - * @param CacheItemPoolInterface $cache * @param ExpressionFunctionProviderInterface[] $providers */ public function __construct(CacheItemPoolInterface $cache = null, array $providers = array()) diff --git a/src/Symfony/Component/Form/Button.php b/src/Symfony/Component/Form/Button.php index 3dbe110fcb084..e894afc70798f 100644 --- a/src/Symfony/Component/Form/Button.php +++ b/src/Symfony/Component/Form/Button.php @@ -124,7 +124,6 @@ public function getParent() * * @param int|string|FormInterface $child * @param null $type - * @param array $options * * @throws BadMethodCallException */ diff --git a/src/Symfony/Component/Form/ButtonBuilder.php b/src/Symfony/Component/Form/ButtonBuilder.php index c49a49f8ada9c..6349b1d1a0f6b 100644 --- a/src/Symfony/Component/Form/ButtonBuilder.php +++ b/src/Symfony/Component/Form/ButtonBuilder.php @@ -72,7 +72,6 @@ public function __construct(?string $name, array $options = array()) * * @param string|int|FormBuilderInterface $child * @param string|FormTypeInterface $type - * @param array $options * * @throws BadMethodCallException */ @@ -88,7 +87,6 @@ public function add($child, $type = null, array $options = array()) * * @param string $name * @param string|FormTypeInterface $type - * @param array $options * * @throws BadMethodCallException */ @@ -190,7 +188,6 @@ public function addEventSubscriber(EventSubscriberInterface $subscriber) * * This method should not be invoked. * - * @param DataTransformerInterface $viewTransformer * @param bool $forcePrepend * * @throws BadMethodCallException @@ -217,7 +214,6 @@ public function resetViewTransformers() * * This method should not be invoked. * - * @param DataTransformerInterface $modelTransformer * @param bool $forceAppend * * @throws BadMethodCallException diff --git a/src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php b/src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php index d4b36b921e1bf..e405fedc3b237 100644 --- a/src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php +++ b/src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php @@ -32,8 +32,6 @@ class ResizeFormListener implements EventSubscriberInterface private $deleteEmpty; /** - * @param string $type - * @param array $options * @param bool $allowAdd Whether children could be added to the group * @param bool $allowDelete Whether children could be removed from the group * @param bool|callable $deleteEmpty diff --git a/src/Symfony/Component/Form/Extension/DependencyInjection/DependencyInjectionExtension.php b/src/Symfony/Component/Form/Extension/DependencyInjection/DependencyInjectionExtension.php index e261fa4f7b830..cb91cdb004f0a 100644 --- a/src/Symfony/Component/Form/Extension/DependencyInjection/DependencyInjectionExtension.php +++ b/src/Symfony/Component/Form/Extension/DependencyInjection/DependencyInjectionExtension.php @@ -25,9 +25,7 @@ class DependencyInjectionExtension implements FormExtensionInterface private $guesserServices; /** - * @param ContainerInterface $typeContainer * @param iterable[] $typeExtensionServices - * @param iterable $guesserServices */ public function __construct(ContainerInterface $typeContainer, array $typeExtensionServices, iterable $guesserServices) { diff --git a/src/Symfony/Component/Form/Tests/AbstractFormTest.php b/src/Symfony/Component/Form/Tests/AbstractFormTest.php index 4c93e0cc42a1b..f49d9aa249cdb 100644 --- a/src/Symfony/Component/Form/Tests/AbstractFormTest.php +++ b/src/Symfony/Component/Form/Tests/AbstractFormTest.php @@ -54,9 +54,7 @@ abstract protected function createForm(); /** * @param string $name - * @param EventDispatcherInterface $dispatcher * @param string $dataClass - * @param array $options * * @return FormBuilder */ diff --git a/src/Symfony/Component/Form/Tests/CompoundFormTest.php b/src/Symfony/Component/Form/Tests/CompoundFormTest.php index acdd004d425a0..8fba3885c561e 100644 --- a/src/Symfony/Component/Form/Tests/CompoundFormTest.php +++ b/src/Symfony/Component/Form/Tests/CompoundFormTest.php @@ -536,7 +536,7 @@ public function testMapFormsToDataIsNotInvokedIfInheritData() )); } - /* + /** * https://github.com/symfony/symfony/issues/4480 */ public function testSubmitRestoresViewDataIfCompoundAndEmpty() diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php index ef2edd5a7d115..d8bee1a780d7a 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php @@ -265,7 +265,7 @@ public function testSubmitEmptyWithEmptyDataCreatesObjectIfRequired() $this->assertEquals(new Author(), $form->getData()); } - /* + /** * We need something to write the field values into */ public function testSubmitWithEmptyDataStoresArrayIfNoClassAvailable() diff --git a/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php b/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php index 53243c88f74d6..68dd3177fae66 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php @@ -97,8 +97,6 @@ private function getDataMapper() } /** - * @param $propertyPath - * * @return ConstraintViolation */ protected function getConstraintViolation($propertyPath) diff --git a/src/Symfony/Component/Form/Tests/FormBuilderTest.php b/src/Symfony/Component/Form/Tests/FormBuilderTest.php index 2ecd19f5eaabb..3c71a9a3a3e6d 100644 --- a/src/Symfony/Component/Form/Tests/FormBuilderTest.php +++ b/src/Symfony/Component/Form/Tests/FormBuilderTest.php @@ -104,7 +104,7 @@ public function testAll() $this->assertArrayHasKey('foo', $children); } - /* + /** * https://github.com/symfony/symfony/issues/4693 */ public function testMaintainOrderOfLazyAndExplicitChildren() diff --git a/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php b/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php index dcdba550c487e..c602263bed9c0 100644 --- a/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php +++ b/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php @@ -383,7 +383,6 @@ private function getMockFormFactory() /** * @param string $name - * @param array $options * * @return FormBuilder */ diff --git a/src/Symfony/Component/Form/Tests/SimpleFormTest.php b/src/Symfony/Component/Form/Tests/SimpleFormTest.php index 36caf2d15b9f8..bea4ade2d73e4 100644 --- a/src/Symfony/Component/Form/Tests/SimpleFormTest.php +++ b/src/Symfony/Component/Form/Tests/SimpleFormTest.php @@ -446,7 +446,7 @@ public function testSetDataExecutesModelTransformersInReverseOrder() $this->assertEquals('third', $form->getNormData()); } - /* + /** * When there is no data transformer, the data must have the same format * in all three representations */ @@ -461,7 +461,7 @@ public function testSetDataConvertsScalarToStringIfNoTransformer() $this->assertSame('1', $form->getViewData()); } - /* + /** * Data in client format should, if possible, always be a string to * facilitate differentiation between '0' and '' */ @@ -481,7 +481,7 @@ public function testSetDataConvertsScalarToStringIfOnlyModelTransformer() $this->assertSame('23', $form->getViewData()); } - /* + /** * NULL remains NULL in app and norm format to remove the need to treat * empty values and NULL explicitly in the application */ diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 1792c9fd52923..1c6ca61dfcf57 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -1664,7 +1664,7 @@ public function isXmlHttpRequest() return 'XMLHttpRequest' == $this->headers->get('X-Requested-With'); } - /* + /** * The following methods are derived from code of the Zend Framework (1.10dev - 2010-01-24) * * Code subject to the new BSD license (http://framework.zend.com/license/new-bsd). @@ -1873,7 +1873,7 @@ private function setPhpDefaultLocale(string $locale) } } - /* + /** * Returns the prefix as encoded in the string when the string starts with * the given prefix, false otherwise. * diff --git a/src/Symfony/Component/HttpFoundation/RequestMatcher.php b/src/Symfony/Component/HttpFoundation/RequestMatcher.php index cc13f71af28ac..368f70a137a14 100644 --- a/src/Symfony/Component/HttpFoundation/RequestMatcher.php +++ b/src/Symfony/Component/HttpFoundation/RequestMatcher.php @@ -53,7 +53,6 @@ class RequestMatcher implements RequestMatcherInterface * @param string|null $host * @param string|string[]|null $methods * @param string|string[]|null $ips - * @param array $attributes * @param string|string[]|null $schemes */ public function __construct(string $path = null, string $host = null, $methods = null, $ips = null, array $attributes = array(), $schemes = null) diff --git a/src/Symfony/Component/HttpFoundation/Session/Session.php b/src/Symfony/Component/HttpFoundation/Session/Session.php index 09caa3442fa49..b52c1d4f6ca3f 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Session.php +++ b/src/Symfony/Component/HttpFoundation/Session/Session.php @@ -30,7 +30,6 @@ class Session implements SessionInterface, \IteratorAggregate, \Countable private $attributeName; /** - * @param SessionStorageInterface $storage A SessionStorageInterface instance * @param AttributeBagInterface $attributes An AttributeBagInterface instance, (defaults null for default AttributeBag) * @param FlashBagInterface $flashes A FlashBagInterface instance (defaults null for default FlashBag) */ diff --git a/src/Symfony/Component/HttpKernel/Config/FileLocator.php b/src/Symfony/Component/HttpKernel/Config/FileLocator.php index 926f0d1a28e14..d3d1070d36324 100644 --- a/src/Symfony/Component/HttpKernel/Config/FileLocator.php +++ b/src/Symfony/Component/HttpKernel/Config/FileLocator.php @@ -25,7 +25,6 @@ class FileLocator extends BaseFileLocator private $path; /** - * @param KernelInterface $kernel A KernelInterface instance * @param null|string $path The path the global resource directory * @param array $paths An array of paths where to look for resources */ diff --git a/src/Symfony/Component/HttpKernel/EventListener/FragmentListener.php b/src/Symfony/Component/HttpKernel/EventListener/FragmentListener.php index f6bfd6cc6d802..16a9a33c38e3c 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/FragmentListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/FragmentListener.php @@ -35,7 +35,6 @@ class FragmentListener implements EventSubscriberInterface private $fragmentPath; /** - * @param UriSigner $signer A UriSigner instance * @param string $fragmentPath The path that triggers this listener */ public function __construct(UriSigner $signer, string $fragmentPath = '/_fragment') diff --git a/src/Symfony/Component/HttpKernel/EventListener/LocaleListener.php b/src/Symfony/Component/HttpKernel/EventListener/LocaleListener.php index 6c2b5098dcf4e..a74b7277e977f 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/LocaleListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/LocaleListener.php @@ -31,7 +31,6 @@ class LocaleListener implements EventSubscriberInterface private $requestStack; /** - * @param RequestStack $requestStack A RequestStack instance * @param string $defaultLocale The default locale * @param RequestContextAwareInterface|null $router The router */ diff --git a/src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php b/src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php index 52e06e1b35513..e46459f898259 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php @@ -37,8 +37,6 @@ class ProfilerListener implements EventSubscriberInterface protected $parents; /** - * @param Profiler $profiler A Profiler instance - * @param RequestStack $requestStack A RequestStack instance * @param RequestMatcherInterface|null $matcher A RequestMatcher instance * @param bool $onlyException True if the profiler only collects data when an exception occurs, false otherwise * @param bool $onlyMasterRequests True if the profiler only collects data when the request is a master request, false otherwise diff --git a/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php b/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php index b8eea1c6393e2..f04e07b1aad00 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php @@ -47,11 +47,8 @@ class RouterListener implements EventSubscriberInterface /** * @param UrlMatcherInterface|RequestMatcherInterface $matcher The Url or Request matcher - * @param RequestStack $requestStack A RequestStack instance * @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 * * @throws \InvalidArgumentException */ @@ -83,8 +80,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/Exception/AccessDeniedHttpException.php b/src/Symfony/Component/HttpKernel/Exception/AccessDeniedHttpException.php index 3aedbf97fec3e..826bd39a6da2d 100644 --- a/src/Symfony/Component/HttpKernel/Exception/AccessDeniedHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/AccessDeniedHttpException.php @@ -21,7 +21,6 @@ class AccessDeniedHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/BadRequestHttpException.php b/src/Symfony/Component/HttpKernel/Exception/BadRequestHttpException.php index ff215db45f7d1..403fe6f9c7fac 100644 --- a/src/Symfony/Component/HttpKernel/Exception/BadRequestHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/BadRequestHttpException.php @@ -20,7 +20,6 @@ class BadRequestHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/ConflictHttpException.php b/src/Symfony/Component/HttpKernel/Exception/ConflictHttpException.php index 60195daf7b09c..08d90b9276027 100644 --- a/src/Symfony/Component/HttpKernel/Exception/ConflictHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/ConflictHttpException.php @@ -20,7 +20,6 @@ class ConflictHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/GoneHttpException.php b/src/Symfony/Component/HttpKernel/Exception/GoneHttpException.php index f2f3515f77ab0..443d48a1b9b5a 100644 --- a/src/Symfony/Component/HttpKernel/Exception/GoneHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/GoneHttpException.php @@ -20,7 +20,6 @@ class GoneHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/LengthRequiredHttpException.php b/src/Symfony/Component/HttpKernel/Exception/LengthRequiredHttpException.php index 46b76ba6a3197..be030325fd4cc 100644 --- a/src/Symfony/Component/HttpKernel/Exception/LengthRequiredHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/LengthRequiredHttpException.php @@ -20,7 +20,6 @@ class LengthRequiredHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/MethodNotAllowedHttpException.php b/src/Symfony/Component/HttpKernel/Exception/MethodNotAllowedHttpException.php index b0085c16fa0e2..cc9316aa921db 100644 --- a/src/Symfony/Component/HttpKernel/Exception/MethodNotAllowedHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/MethodNotAllowedHttpException.php @@ -21,7 +21,6 @@ class MethodNotAllowedHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(array $allow, string $message = null, \Exception $previous = null, ?int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/NotAcceptableHttpException.php b/src/Symfony/Component/HttpKernel/Exception/NotAcceptableHttpException.php index 32c3089374bca..26e85a035a95c 100644 --- a/src/Symfony/Component/HttpKernel/Exception/NotAcceptableHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/NotAcceptableHttpException.php @@ -20,7 +20,6 @@ class NotAcceptableHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/NotFoundHttpException.php b/src/Symfony/Component/HttpKernel/Exception/NotFoundHttpException.php index 433ff9b9e0d64..d519b6e54557d 100644 --- a/src/Symfony/Component/HttpKernel/Exception/NotFoundHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/NotFoundHttpException.php @@ -20,7 +20,6 @@ class NotFoundHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/PreconditionFailedHttpException.php b/src/Symfony/Component/HttpKernel/Exception/PreconditionFailedHttpException.php index 108178889cb05..987f7c5ac736a 100644 --- a/src/Symfony/Component/HttpKernel/Exception/PreconditionFailedHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/PreconditionFailedHttpException.php @@ -20,7 +20,6 @@ class PreconditionFailedHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/PreconditionRequiredHttpException.php b/src/Symfony/Component/HttpKernel/Exception/PreconditionRequiredHttpException.php index 30783282410fc..c5b8040dc386d 100644 --- a/src/Symfony/Component/HttpKernel/Exception/PreconditionRequiredHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/PreconditionRequiredHttpException.php @@ -22,7 +22,6 @@ class PreconditionRequiredHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/ServiceUnavailableHttpException.php b/src/Symfony/Component/HttpKernel/Exception/ServiceUnavailableHttpException.php index 667764779f8e7..440e777966918 100644 --- a/src/Symfony/Component/HttpKernel/Exception/ServiceUnavailableHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/ServiceUnavailableHttpException.php @@ -21,7 +21,6 @@ class ServiceUnavailableHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct($retryAfter = null, string $message = null, \Exception $previous = null, ?int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/TooManyRequestsHttpException.php b/src/Symfony/Component/HttpKernel/Exception/TooManyRequestsHttpException.php index 60b024c330171..699c62f460338 100644 --- a/src/Symfony/Component/HttpKernel/Exception/TooManyRequestsHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/TooManyRequestsHttpException.php @@ -23,7 +23,6 @@ class TooManyRequestsHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct($retryAfter = null, string $message = null, \Exception $previous = null, ?int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/UnauthorizedHttpException.php b/src/Symfony/Component/HttpKernel/Exception/UnauthorizedHttpException.php index 17ebb254640b8..3cfcf9c9ab8fb 100644 --- a/src/Symfony/Component/HttpKernel/Exception/UnauthorizedHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/UnauthorizedHttpException.php @@ -21,7 +21,6 @@ class UnauthorizedHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $challenge, string $message = null, \Exception $previous = null, ?int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/UnprocessableEntityHttpException.php b/src/Symfony/Component/HttpKernel/Exception/UnprocessableEntityHttpException.php index 3a4b40c98457d..584cbff2bb943 100644 --- a/src/Symfony/Component/HttpKernel/Exception/UnprocessableEntityHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/UnprocessableEntityHttpException.php @@ -20,7 +20,6 @@ class UnprocessableEntityHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Exception/UnsupportedMediaTypeHttpException.php b/src/Symfony/Component/HttpKernel/Exception/UnsupportedMediaTypeHttpException.php index ed6861154adab..57705d6c9905f 100644 --- a/src/Symfony/Component/HttpKernel/Exception/UnsupportedMediaTypeHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/UnsupportedMediaTypeHttpException.php @@ -20,7 +20,6 @@ class UnsupportedMediaTypeHttpException extends HttpException * @param string $message The internal exception message * @param \Exception $previous The previous exception * @param int $code The internal exception code - * @param array $headers */ public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php b/src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php index 2489a639376e1..3423a26571430 100644 --- a/src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php +++ b/src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php @@ -32,9 +32,7 @@ abstract class AbstractSurrogateFragmentRenderer extends RoutableFragmentRendere * The "fallback" strategy when surrogate is not available should always be an * instance of InlineFragmentRenderer. * - * @param SurrogateInterface $surrogate An Surrogate instance * @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/HIncludeFragmentRenderer.php b/src/Symfony/Component/HttpKernel/Fragment/HIncludeFragmentRenderer.php index e737a141e93b7..3b182a4800d1c 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/Fragment/RoutableFragmentRenderer.php b/src/Symfony/Component/HttpKernel/Fragment/RoutableFragmentRenderer.php index d7eeb89a6befc..0c323579c6ac6 100644 --- a/src/Symfony/Component/HttpKernel/Fragment/RoutableFragmentRenderer.php +++ b/src/Symfony/Component/HttpKernel/Fragment/RoutableFragmentRenderer.php @@ -39,8 +39,6 @@ public function setFragmentPath($path) /** * Generates a fragment URI for a given controller. * - * @param ControllerReference $reference A ControllerReference instance - * @param Request $request A Request instance * @param bool $absolute Whether to generate an absolute URL or not * @param bool $strict Whether to allow non-scalar attributes or not * diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php index ad554587be93b..49712c4c4d085 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php @@ -222,7 +222,6 @@ public function terminate(Request $request, Response $response) /** * Forwards the Request to the backend without storing the Response in the cache. * - * @param Request $request A Request instance * @param bool $catch Whether to process exceptions * * @return Response A Response instance @@ -237,7 +236,6 @@ protected function pass(Request $request, $catch = false) /** * Invalidates non-safe methods (like POST, PUT, and DELETE). * - * @param Request $request A Request instance * @param bool $catch Whether to process exceptions * * @return Response A Response instance @@ -286,7 +284,6 @@ protected function invalidate(Request $request, $catch = false) * the backend using conditional GET. When no matching cache entry is found, * it triggers "miss" processing. * - * @param Request $request A Request instance * @param bool $catch Whether to process exceptions * * @return Response A Response instance @@ -332,7 +329,6 @@ protected function lookup(Request $request, $catch = false) * The original request is used as a template for a conditional * GET request with the backend. * - * @param Request $request A Request instance * @param Response $entry A Response instance to validate * @param bool $catch Whether to process exceptions * @@ -395,7 +391,6 @@ protected function validate(Request $request, Response $entry, $catch = false) * Unconditionally fetches a fresh response from the backend and * stores it in the cache if is cacheable. * - * @param Request $request A Request instance * @param bool $catch Whether to process exceptions * * @return Response A Response instance @@ -428,7 +423,6 @@ protected function fetch(Request $request, $catch = false) * All backend requests (cache passes, fetches, cache validations) * run through this method. * - * @param Request $request A Request instance * @param bool $catch Whether to catch exceptions or not * @param Response $entry A Response instance (the stale entry if present, null otherwise) * diff --git a/src/Symfony/Component/HttpKernel/HttpKernel.php b/src/Symfony/Component/HttpKernel/HttpKernel.php index 3f4ba9497a798..d5e088e8ef1d0 100644 --- a/src/Symfony/Component/HttpKernel/HttpKernel.php +++ b/src/Symfony/Component/HttpKernel/HttpKernel.php @@ -110,7 +110,6 @@ public function terminateWithException(\Exception $exception) * * Exceptions are not caught. * - * @param Request $request A Request instance * @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) * * @return Response A Response instance @@ -174,7 +173,6 @@ private function handleRaw(Request $request, int $type = self::MASTER_REQUEST) /** * Filters a response object. * - * @param Response $response A Response instance * @param Request $request An error message in case the response is not a Response object * @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) * @@ -210,7 +208,6 @@ private function finishRequest(Request $request, int $type) * Handles an exception by trying to convert it to a Response. * * @param \Exception $e An \Exception instance - * @param Request $request A Request instance * @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) * * @throws \Exception diff --git a/src/Symfony/Component/Intl/Data/Generator/AbstractDataGenerator.php b/src/Symfony/Component/Intl/Data/Generator/AbstractDataGenerator.php index d13596bc1783d..dc3dcfed26ca5 100644 --- a/src/Symfony/Component/Intl/Data/Generator/AbstractDataGenerator.php +++ b/src/Symfony/Component/Intl/Data/Generator/AbstractDataGenerator.php @@ -90,7 +90,6 @@ public function generateData(GeneratorConfig $config) } /** - * @param LocaleScanner $scanner * @param string $sourceDir * * @return string[] @@ -98,7 +97,6 @@ public function generateData(GeneratorConfig $config) abstract protected function scanLocales(LocaleScanner $scanner, $sourceDir); /** - * @param GenrbCompiler $compiler * @param string $sourceDir * @param string $tempDir */ @@ -107,7 +105,6 @@ abstract protected function compileTemporaryBundles(GenrbCompiler $compiler, $so abstract protected function preGenerate(); /** - * @param BundleReaderInterface $reader * @param string $tempDir * @param string $displayLocale * @@ -116,7 +113,6 @@ abstract protected function preGenerate(); abstract protected function generateDataForLocale(BundleReaderInterface $reader, $tempDir, $displayLocale); /** - * @param BundleReaderInterface $reader * @param string $tempDir * * @return array|null @@ -124,7 +120,6 @@ abstract protected function generateDataForLocale(BundleReaderInterface $reader, abstract protected function generateDataForRoot(BundleReaderInterface $reader, $tempDir); /** - * @param BundleReaderInterface $reader * @param string $tempDir * * @return array|null diff --git a/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php b/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php index 18d2abba8f725..5672128c2a725 100644 --- a/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php +++ b/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php @@ -838,7 +838,7 @@ public function parseErrorProvider() ); } - /* + /** * https://github.com/symfony/symfony/issues/4242 */ public function testParseAfterError() @@ -924,9 +924,6 @@ protected function assertIsIntlSuccess($formatter, $errorMessage, $errorCode) } /** - * @param $locale - * @param $datetype - * @param $timetype * @param null $timezone * @param int $calendar * @param null $pattern diff --git a/src/Symfony/Component/Ldap/Entry.php b/src/Symfony/Component/Ldap/Entry.php index aac189624af9a..d2be944248b59 100644 --- a/src/Symfony/Component/Ldap/Entry.php +++ b/src/Symfony/Component/Ldap/Entry.php @@ -76,7 +76,6 @@ public function getAttributes() * Sets a value for the given attribute. * * @param string $name - * @param array $value */ public function setAttribute($name, array $value) { diff --git a/src/Symfony/Component/Lock/Store/CombinedStore.php b/src/Symfony/Component/Lock/Store/CombinedStore.php index 50258fe694d6d..75bb5044bea71 100644 --- a/src/Symfony/Component/Lock/Store/CombinedStore.php +++ b/src/Symfony/Component/Lock/Store/CombinedStore.php @@ -38,7 +38,6 @@ class CombinedStore implements StoreInterface, LoggerAwareInterface /** * @param StoreInterface[] $stores The list of synchronized stores - * @param StrategyInterface $strategy * * @throws InvalidArgumentException */ diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccess.php b/src/Symfony/Component/PropertyAccess/PropertyAccess.php index e929347e6536c..1953ac09633ab 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccess.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccess.php @@ -20,8 +20,6 @@ final class PropertyAccess { /** * Creates a property accessor with the default configuration. - * - * @return PropertyAccessor */ public static function createPropertyAccessor(): PropertyAccessor { diff --git a/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php b/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php index 212c3dc41fdef..2b11fea1a7ce7 100644 --- a/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php +++ b/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php @@ -46,7 +46,6 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property private $arrayMutatorPrefixes; /** - * @param DocBlockFactoryInterface $docBlockFactory * @param string[]|null $mutatorPrefixes * @param string[]|null $accessorPrefixes * @param string[]|null $arrayMutatorPrefixes diff --git a/src/Symfony/Component/Routing/Loader/YamlFileLoader.php b/src/Symfony/Component/Routing/Loader/YamlFileLoader.php index f3072c927b73e..b9aaf196e3b7a 100644 --- a/src/Symfony/Component/Routing/Loader/YamlFileLoader.php +++ b/src/Symfony/Component/Routing/Loader/YamlFileLoader.php @@ -100,7 +100,6 @@ public function supports($resource, $type = null) /** * Parses a route and adds it to the RouteCollection. * - * @param RouteCollection $collection A RouteCollection instance * @param string $name Route name * @param array $config Route definition * @param string $path Full path of the YAML file being processed @@ -127,7 +126,6 @@ protected function parseRoute(RouteCollection $collection, $name, array $config, /** * Parses an import and adds the routes in the resource to the RouteCollection. * - * @param RouteCollection $collection A RouteCollection instance * @param array $config Route definition * @param string $path Full path of the YAML file being processed * @param string $file Loaded file name diff --git a/src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php b/src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php index aaa352d22c069..bdfde131e2cbc 100644 --- a/src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php +++ b/src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php @@ -121,7 +121,6 @@ public function match(\$pathinfo) /** * Generates PHP code to match a RouteCollection with all its routes. * - * @param RouteCollection $routes A RouteCollection instance * @param bool $supportsRedirections Whether redirections are supported by the base class * * @return string PHP code @@ -181,7 +180,6 @@ private function buildStaticPrefixCollection(DumperCollection $collection) /** * Generates PHP code to match a tree of routes. * - * @param StaticPrefixCollection $collection A StaticPrefixCollection instance * @param bool $supportsRedirections Whether redirections are supported by the base class * @param string $ifOrElseIf either "if" or "elseif" to influence chaining * @@ -220,7 +218,6 @@ private function compileStaticPrefixRoutes(StaticPrefixCollection $collection, $ /** * Compiles a single Route to PHP code used to match it against the path info. * - * @param Route $route A Route instance * @param string $name The name of the Route * @param bool $supportsRedirections Whether redirections are supported by the base class * @param string|null $parentPrefix The prefix of the parent collection used to optimize the code diff --git a/src/Symfony/Component/Routing/Matcher/Dumper/StaticPrefixCollection.php b/src/Symfony/Component/Routing/Matcher/Dumper/StaticPrefixCollection.php index e0117890cdf2b..baa0ae87d61af 100644 --- a/src/Symfony/Component/Routing/Matcher/Dumper/StaticPrefixCollection.php +++ b/src/Symfony/Component/Routing/Matcher/Dumper/StaticPrefixCollection.php @@ -56,7 +56,6 @@ public function getItems(): array /** * Adds a route to a group. * - * @param string $prefix * @param mixed $route */ public function addRoute(string $prefix, $route) @@ -103,7 +102,6 @@ public function addRoute(string $prefix, $route) * Tries to combine a route with another route or group. * * @param StaticPrefixCollection|array $item - * @param string $prefix * @param mixed $route * * @return null|StaticPrefixCollection diff --git a/src/Symfony/Component/Routing/RouteCollection.php b/src/Symfony/Component/Routing/RouteCollection.php index feabf234bc6d4..ef84cf5793643 100644 --- a/src/Symfony/Component/Routing/RouteCollection.php +++ b/src/Symfony/Component/Routing/RouteCollection.php @@ -70,7 +70,6 @@ public function count() * Adds a route. * * @param string $name The route name - * @param Route $route A Route instance */ public function add($name, Route $route) { diff --git a/src/Symfony/Component/Routing/RouteCollectionBuilder.php b/src/Symfony/Component/Routing/RouteCollectionBuilder.php index d6bcfdbf02a79..a266ccedeed74 100644 --- a/src/Symfony/Component/Routing/RouteCollectionBuilder.php +++ b/src/Symfony/Component/Routing/RouteCollectionBuilder.php @@ -116,7 +116,6 @@ public function createBuilder() * Add a RouteCollectionBuilder. * * @param string $prefix - * @param RouteCollectionBuilder $builder */ public function mount($prefix, RouteCollectionBuilder $builder) { @@ -127,7 +126,6 @@ public function mount($prefix, RouteCollectionBuilder $builder) /** * Adds a Route object to the builder. * - * @param Route $route * @param string|null $name * * @return $this @@ -251,8 +249,6 @@ public function setMethods($methods) /** * Adds a resource for this collection. * - * @param ResourceInterface $resource - * * @return $this */ private function addResource(ResourceInterface $resource): RouteCollectionBuilder diff --git a/src/Symfony/Component/Routing/Router.php b/src/Symfony/Component/Routing/Router.php index 0de921853f875..c2ba063d7ddd7 100644 --- a/src/Symfony/Component/Routing/Router.php +++ b/src/Symfony/Component/Routing/Router.php @@ -84,7 +84,6 @@ class Router implements RouterInterface, RequestMatcherInterface private $expressionLanguageProviders = array(); /** - * @param LoaderInterface $loader A LoaderInterface instance * @param mixed $resource The main resource to load * @param array $options An array of options * @param RequestContext $context The context diff --git a/src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php b/src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php index 6579668f50714..e31b6e51ae369 100644 --- a/src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php +++ b/src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php @@ -24,8 +24,6 @@ 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 * * @throws \InvalidArgumentException diff --git a/src/Symfony/Component/Security/Core/Authorization/Voter/Voter.php b/src/Symfony/Component/Security/Core/Authorization/Voter/Voter.php index 0641486b7a13b..e6617213f745f 100644 --- a/src/Symfony/Component/Security/Core/Authorization/Voter/Voter.php +++ b/src/Symfony/Component/Security/Core/Authorization/Voter/Voter.php @@ -62,7 +62,6 @@ abstract protected function supports($attribute, $subject); * * @param string $attribute * @param mixed $subject - * @param TokenInterface $token * * @return bool */ diff --git a/src/Symfony/Component/Security/Core/User/LdapUserProvider.php b/src/Symfony/Component/Security/Core/User/LdapUserProvider.php index fcc3bcdb4236d..4e3adabea3eb0 100644 --- a/src/Symfony/Component/Security/Core/User/LdapUserProvider.php +++ b/src/Symfony/Component/Security/Core/User/LdapUserProvider.php @@ -112,7 +112,6 @@ public function supportsClass($class) * Loads a user from an LDAP entry. * * @param string $username - * @param Entry $entry * * @return User */ diff --git a/src/Symfony/Component/Security/Guard/AbstractGuardAuthenticator.php b/src/Symfony/Component/Security/Guard/AbstractGuardAuthenticator.php index cdfb613593928..da64c4e59cb42 100644 --- a/src/Symfony/Component/Security/Guard/AbstractGuardAuthenticator.php +++ b/src/Symfony/Component/Security/Guard/AbstractGuardAuthenticator.php @@ -25,7 +25,6 @@ abstract class AbstractGuardAuthenticator implements AuthenticatorInterface * Shortcut to create a PostAuthenticationGuardToken for you, if you don't really * care about which authenticated token you're using. * - * @param UserInterface $user * @param string $providerKey * * @return PostAuthenticationGuardToken diff --git a/src/Symfony/Component/Security/Guard/Firewall/GuardAuthenticationListener.php b/src/Symfony/Component/Security/Guard/Firewall/GuardAuthenticationListener.php index 80ae75caa2b85..d6954e35acc21 100644 --- a/src/Symfony/Component/Security/Guard/Firewall/GuardAuthenticationListener.php +++ b/src/Symfony/Component/Security/Guard/Firewall/GuardAuthenticationListener.php @@ -42,10 +42,8 @@ class GuardAuthenticationListener implements ListenerInterface /** * @param GuardAuthenticatorHandler $guardHandler The Guard handler - * @param AuthenticationManagerInterface $authenticationManager An AuthenticationManagerInterface instance * @param string $providerKey The provider (i.e. firewall) key * @param iterable|AuthenticatorInterface[] $guardAuthenticators The authenticators, with keys that match what's passed to GuardAuthenticationProvider - * @param LoggerInterface $logger A LoggerInterface instance */ public function __construct(GuardAuthenticatorHandler $guardHandler, AuthenticationManagerInterface $authenticationManager, string $providerKey, $guardAuthenticators, LoggerInterface $logger = null) { diff --git a/src/Symfony/Component/Security/Guard/Provider/GuardAuthenticationProvider.php b/src/Symfony/Component/Security/Guard/Provider/GuardAuthenticationProvider.php index 9ca26a74c2343..fd79ef232e9f5 100644 --- a/src/Symfony/Component/Security/Guard/Provider/GuardAuthenticationProvider.php +++ b/src/Symfony/Component/Security/Guard/Provider/GuardAuthenticationProvider.php @@ -43,7 +43,6 @@ class GuardAuthenticationProvider implements AuthenticationProviderInterface * @param iterable|AuthenticatorInterface[] $guardAuthenticators The authenticators, with keys that match what's passed to GuardAuthenticationListener * @param UserProviderInterface $userProvider The user provider * @param string $providerKey The provider (i.e. firewall) key - * @param UserCheckerInterface $userChecker */ public function __construct($guardAuthenticators, UserProviderInterface $userProvider, string $providerKey, UserCheckerInterface $userChecker) { diff --git a/src/Symfony/Component/Security/Http/AccessMap.php b/src/Symfony/Component/Security/Http/AccessMap.php index acd4101e72a97..57d78037668e7 100644 --- a/src/Symfony/Component/Security/Http/AccessMap.php +++ b/src/Symfony/Component/Security/Http/AccessMap.php @@ -25,7 +25,6 @@ class AccessMap implements AccessMapInterface private $map = array(); /** - * @param RequestMatcherInterface $requestMatcher A RequestMatcherInterface instance * @param array $attributes An array of attributes to pass to the access decision manager (like roles) * @param string|null $channel The channel to enforce (http, https, or null) */ diff --git a/src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.php b/src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.php index babf86b84b7e4..df859ff190659 100644 --- a/src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.php +++ b/src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.php @@ -40,7 +40,6 @@ class DefaultAuthenticationSuccessHandler implements AuthenticationSuccessHandle ); /** - * @param HttpUtils $httpUtils * @param array $options Options for processing a successful authentication attempt */ public function __construct(HttpUtils $httpUtils, array $options = array()) diff --git a/src/Symfony/Component/Security/Http/EntryPoint/FormAuthenticationEntryPoint.php b/src/Symfony/Component/Security/Http/EntryPoint/FormAuthenticationEntryPoint.php index 3ebdeffec8998..4e796bcb9fb5f 100644 --- a/src/Symfony/Component/Security/Http/EntryPoint/FormAuthenticationEntryPoint.php +++ b/src/Symfony/Component/Security/Http/EntryPoint/FormAuthenticationEntryPoint.php @@ -29,8 +29,6 @@ class FormAuthenticationEntryPoint implements AuthenticationEntryPointInterface private $httpUtils; /** - * @param HttpKernelInterface $kernel - * @param HttpUtils $httpUtils An HttpUtils instance * @param string $loginPath The path to the login form * @param bool $useForward Whether to forward or redirect to the login form */ diff --git a/src/Symfony/Component/Security/Http/Firewall/ContextListener.php b/src/Symfony/Component/Security/Http/Firewall/ContextListener.php index 67ce5cefaa123..54de9367d24b9 100644 --- a/src/Symfony/Component/Security/Http/Firewall/ContextListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/ContextListener.php @@ -46,7 +46,6 @@ class ContextListener implements ListenerInterface private $logoutOnUserChange = true; /** - * @param TokenStorageInterface $tokenStorage * @param iterable|UserProviderInterface[] $userProviders */ public function __construct(TokenStorageInterface $tokenStorage, iterable $userProviders, string $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, AuthenticationTrustResolverInterface $trustResolver = null) diff --git a/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php b/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php index 21819ce4a9968..a912efa0359b3 100644 --- a/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php @@ -38,9 +38,6 @@ class LogoutListener implements ListenerInterface private $csrfTokenManager; /** - * @param TokenStorageInterface $tokenStorage - * @param HttpUtils $httpUtils An HttpUtils instance - * @param LogoutSuccessHandlerInterface $successHandler A LogoutSuccessHandlerInterface instance * @param array $options An array of options to process a logout attempt * @param CsrfTokenManagerInterface|null $csrfTokenManager A CsrfTokenManagerInterface instance */ diff --git a/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php b/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php index 548ce7ce91900..1fbe634f46fbf 100644 --- a/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php @@ -105,7 +105,6 @@ public function handle(GetResponseEvent $event) /** * Attempts to switch to another user. * - * @param Request $request A Request instance * @param string $username * * @return TokenInterface|null The new TokenInterface if successfully switched, null otherwise diff --git a/src/Symfony/Component/Security/Http/HttpUtils.php b/src/Symfony/Component/Security/Http/HttpUtils.php index f9551370fcd1f..363d9789e2943 100644 --- a/src/Symfony/Component/Security/Http/HttpUtils.php +++ b/src/Symfony/Component/Security/Http/HttpUtils.php @@ -31,7 +31,6 @@ class HttpUtils private $urlMatcher; /** - * @param UrlGeneratorInterface $urlGenerator A UrlGeneratorInterface instance * @param UrlMatcherInterface|RequestMatcherInterface $urlMatcher The URL or Request matcher * * @throws \InvalidArgumentException @@ -48,7 +47,6 @@ public function __construct(UrlGeneratorInterface $urlGenerator = null, $urlMatc /** * Creates a redirect Response. * - * @param Request $request A Request instance * @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) * @param int $status The status code * @@ -90,7 +88,6 @@ public function createRequest(Request $request, $path) /** * Checks that a given path matches the Request. * - * @param Request $request A Request instance * @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) * * @return bool true if the path is the same as the one from the Request, false otherwise diff --git a/src/Symfony/Component/Serializer/Encoder/ChainEncoder.php b/src/Symfony/Component/Serializer/Encoder/ChainEncoder.php index 2737f6eba695f..2c9b8784e83d6 100644 --- a/src/Symfony/Component/Serializer/Encoder/ChainEncoder.php +++ b/src/Symfony/Component/Serializer/Encoder/ChainEncoder.php @@ -58,7 +58,6 @@ public function supportsEncoding($format, array $context = array()) * Checks whether the normalization is needed for the given format. * * @param string $format - * @param array $context * * @return bool */ diff --git a/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php b/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php index b15b1946d7a5e..8fda812e335cb 100644 --- a/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php +++ b/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php @@ -41,7 +41,6 @@ class XmlEncoder implements EncoderInterface, DecoderInterface, NormalizationAwa /** * Construct new XmlEncoder and allow to change the root node element name. * - * @param string $rootNodeName * @param int|null $loadOptions A bit field of LIBXML_* constants */ public function __construct(string $rootNodeName = 'response', int $loadOptions = null) diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php index 31bc1fc72f09e..40728e85f883e 100644 --- a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php @@ -199,7 +199,6 @@ protected function handleCircularReference($object) * Gets attributes to normalize using groups. * * @param string|object $classOrObject - * @param array $context * @param bool $attributesAsString If false, return an array of {@link AttributeMetadataInterface} * * @return string[]|AttributeMetadataInterface[]|bool @@ -238,7 +237,6 @@ protected function getAllowedAttributes($classOrObject, array $context, $attribu * @param object|string $classOrObject * @param string $attribute * @param string|null $format - * @param array $context * * @return bool */ @@ -277,9 +275,7 @@ protected function prepareForDenormalization($data) * Returns the method to use to construct an object. This method must be either * the object constructor or static. * - * @param array $data * @param string $class - * @param array $context * @param \ReflectionClass $reflectionClass * @param array|bool $allowedAttributes * @@ -298,9 +294,7 @@ protected function getConstructor(array &$data, $class, array &$context, \Reflec * is removed from the context before being returned to avoid side effects * when recursively normalizing an object graph. * - * @param array $data * @param string $class - * @param array $context * @param \ReflectionClass $reflectionClass * @param array|bool $allowedAttributes * @param string|null $format @@ -377,7 +371,6 @@ protected function instantiateObject(array &$data, $class, array &$context, \Ref } /** - * @param array $parentContext * @param string $attribute * * @return array diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php index f547b4984ffd4..ab6b631805f1d 100644 --- a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php @@ -106,7 +106,6 @@ public function normalize($object, $format = null, array $context = array()) * * @param object $object * @param string|null $format - * @param array $context * * @return string[] */ @@ -141,7 +140,6 @@ protected function getAttributes($object, $format = null, array $context) * * @param object $object * @param string|null $format - * @param array $context * * @return string[] */ @@ -153,7 +151,6 @@ abstract protected function extractAttributes($object, $format = null, array $co * @param object $object * @param string $attribute * @param string|null $format - * @param array $context * * @return mixed */ @@ -218,7 +215,6 @@ public function denormalize($data, $class, $format = null, array $context = arra * @param string $attribute * @param mixed $value * @param string|null $format - * @param array $context */ abstract protected function setAttributeValue($object, $attribute, $value, $format = null, array $context = array()); diff --git a/src/Symfony/Component/Templating/PhpEngine.php b/src/Symfony/Component/Templating/PhpEngine.php index ff1897ba3879e..567185337119d 100644 --- a/src/Symfony/Component/Templating/PhpEngine.php +++ b/src/Symfony/Component/Templating/PhpEngine.php @@ -43,7 +43,6 @@ 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 */ diff --git a/src/Symfony/Component/Translation/Dumper/FileDumper.php b/src/Symfony/Component/Translation/Dumper/FileDumper.php index 2e047ed7c0e42..48ea2ee15b4c1 100644 --- a/src/Symfony/Component/Translation/Dumper/FileDumper.php +++ b/src/Symfony/Component/Translation/Dumper/FileDumper.php @@ -83,9 +83,7 @@ public function dump(MessageCatalogue $messages, $options = array()) /** * Transforms a domain of a message catalogue to its string representation. * - * @param MessageCatalogue $messages * @param string $domain - * @param array $options * * @return string representation */ diff --git a/src/Symfony/Component/Translation/Extractor/PhpExtractor.php b/src/Symfony/Component/Translation/Extractor/PhpExtractor.php index f364bdecd3fcb..2125d8e1cb07a 100644 --- a/src/Symfony/Component/Translation/Extractor/PhpExtractor.php +++ b/src/Symfony/Component/Translation/Extractor/PhpExtractor.php @@ -187,7 +187,6 @@ private function getValue(\Iterator $tokenIterator) * Extracts trans message from PHP tokens. * * @param array $tokens - * @param MessageCatalogue $catalog */ protected function parseTokens($tokens, MessageCatalogue $catalog) { diff --git a/src/Symfony/Component/Translation/LoggingTranslator.php b/src/Symfony/Component/Translation/LoggingTranslator.php index 337c114330bb8..8aba7c51305cb 100644 --- a/src/Symfony/Component/Translation/LoggingTranslator.php +++ b/src/Symfony/Component/Translation/LoggingTranslator.php @@ -28,7 +28,6 @@ class LoggingTranslator implements TranslatorInterface, TranslatorBagInterface /** * @param TranslatorInterface $translator The translator must implement TranslatorBagInterface - * @param LoggerInterface $logger */ public function __construct(TranslatorInterface $translator, LoggerInterface $logger) { diff --git a/src/Symfony/Component/Translation/Reader/TranslationReader.php b/src/Symfony/Component/Translation/Reader/TranslationReader.php index d2ad774e28794..39b92eb4bbf85 100644 --- a/src/Symfony/Component/Translation/Reader/TranslationReader.php +++ b/src/Symfony/Component/Translation/Reader/TranslationReader.php @@ -33,7 +33,6 @@ class TranslationReader implements TranslationReaderInterface * Adds a loader to the translation extractor. * * @param string $format The format of the loader - * @param LoaderInterface $loader */ public function addLoader($format, LoaderInterface $loader) { diff --git a/src/Symfony/Component/Translation/Translator.php b/src/Symfony/Component/Translation/Translator.php index 2899db0101e1d..823397685f546 100644 --- a/src/Symfony/Component/Translation/Translator.php +++ b/src/Symfony/Component/Translation/Translator.php @@ -98,7 +98,6 @@ public function setConfigCacheFactory(ConfigCacheFactoryInterface $configCacheFa * Adds a Loader. * * @param string $format The name of the loader (@see addResource()) - * @param LoaderInterface $loader A LoaderInterface instance */ public function addLoader($format, LoaderInterface $loader) { diff --git a/src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php b/src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php index 36a9d8ad276d7..bab57f9636555 100644 --- a/src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php +++ b/src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php @@ -88,7 +88,6 @@ class CardSchemeValidator extends ConstraintValidator * Validates a creditcard belongs to a specified scheme. * * @param mixed $value - * @param Constraint $constraint */ 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 85e4d76215002..804fd3f0ad6b8 100644 --- a/src/Symfony/Component/Validator/Constraints/LuhnValidator.php +++ b/src/Symfony/Component/Validator/Constraints/LuhnValidator.php @@ -33,7 +33,6 @@ class LuhnValidator extends ConstraintValidator * Validates a credit card number with the Luhn algorithm. * * @param mixed $value - * @param Constraint $constraint * * @throws UnexpectedTypeException when the given credit card number is no string */ diff --git a/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php b/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php index c2932f81e8b1f..f04820e671e93 100644 --- a/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php +++ b/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php @@ -196,8 +196,6 @@ protected function assertNoViolation() } /** - * @param $message - * * @return ConstraintViolationAssertion */ protected function buildViolation($message) diff --git a/src/Symfony/Component/Workflow/Event/Event.php b/src/Symfony/Component/Workflow/Event/Event.php index 19c78d47082d3..54348fc7e0085 100644 --- a/src/Symfony/Component/Workflow/Event/Event.php +++ b/src/Symfony/Component/Workflow/Event/Event.php @@ -28,9 +28,6 @@ class Event extends BaseEvent /** * @param object $subject - * @param Marking $marking - * @param Transition $transition - * @param string $workflowName */ public function __construct($subject, Marking $marking, Transition $transition, string $workflowName = 'unnamed') { diff --git a/src/Symfony/Component/Workflow/Registry.php b/src/Symfony/Component/Workflow/Registry.php index 2430dcb34ceaf..50bf960af0bff 100644 --- a/src/Symfony/Component/Workflow/Registry.php +++ b/src/Symfony/Component/Workflow/Registry.php @@ -23,7 +23,6 @@ class Registry private $workflows = array(); /** - * @param Workflow $workflow * @param SupportStrategyInterface $supportStrategy */ public function add(Workflow $workflow, $supportStrategy) diff --git a/src/Symfony/Component/Workflow/Transition.php b/src/Symfony/Component/Workflow/Transition.php index b9f52d8e10910..447c3c4f781e0 100644 --- a/src/Symfony/Component/Workflow/Transition.php +++ b/src/Symfony/Component/Workflow/Transition.php @@ -24,7 +24,6 @@ class Transition private $tos; /** - * @param string $name * @param string|string[] $froms * @param string|string[] $tos */ diff --git a/src/Symfony/Component/Workflow/Workflow.php b/src/Symfony/Component/Workflow/Workflow.php index 96e3b2f1d637d..4ec6feaa52a34 100644 --- a/src/Symfony/Component/Workflow/Workflow.php +++ b/src/Symfony/Component/Workflow/Workflow.php @@ -222,8 +222,6 @@ private function doCan($subject, Marking $marking, Transition $transition) /** * @param object $subject - * @param Marking $marking - * @param Transition $transition * * @return bool|void boolean true if this transition is guarded, ie you cannot use it */ diff --git a/src/Symfony/Component/Yaml/Inline.php b/src/Symfony/Component/Yaml/Inline.php index fe9f1d87e2ca7..7dbf27f44f247 100644 --- a/src/Symfony/Component/Yaml/Inline.php +++ b/src/Symfony/Component/Yaml/Inline.php @@ -702,8 +702,6 @@ private static function getTimestampRegex(): string /** * Gets a regex that matches a YAML number in hexadecimal notation. - * - * @return string */ private static function getHexRegex(): string { diff --git a/src/Symfony/Component/Yaml/Parser.php b/src/Symfony/Component/Yaml/Parser.php index cc1487002eb73..88c7e9fffa590 100644 --- a/src/Symfony/Component/Yaml/Parser.php +++ b/src/Symfony/Component/Yaml/Parser.php @@ -109,8 +109,6 @@ public function parse(string $value, int $flags = 0) /** * @internal - * - * @return int */ public function getLastLineNumberBeforeDeprecation(): int { @@ -614,8 +612,6 @@ private function getNextEmbedBlock(int $indentation = null, bool $inSequence = f /** * Moves the parser to the next line. - * - * @return bool */ private function moveToNextLine(): bool { @@ -630,8 +626,6 @@ private function moveToNextLine(): bool /** * Moves the parser to the previous line. - * - * @return bool */ private function moveToPreviousLine(): bool { @@ -975,8 +969,6 @@ private function isStringUnIndentedCollectionItem(): bool /** * Tests whether or not the current line is the header of a block scalar. - * - * @return bool */ private function isBlockScalarHeader(): bool { diff --git a/src/Symfony/Component/Yaml/Tests/ParserTest.php b/src/Symfony/Component/Yaml/Tests/ParserTest.php index fb28277abf040..10aa6ff77467a 100644 --- a/src/Symfony/Component/Yaml/Tests/ParserTest.php +++ b/src/Symfony/Component/Yaml/Tests/ParserTest.php @@ -1340,8 +1340,6 @@ public function testParseDateAsMappingValue() } /** - * @param $lineNumber - * @param $yaml * @dataProvider parserThrowsExceptionWithCorrectLineNumberProvider */ public function testParserThrowsExceptionWithCorrectLineNumber($lineNumber, $yaml) From 69b98b560fa3c5d201751b94031961ea9c36f4c3 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Sun, 12 Nov 2017 18:03:52 +0100 Subject: [PATCH 2/2] fix indentation cs after param docs removal --- .../Doctrine/DataCollector/DoctrineDataCollector.php | 2 +- .../DependencyInjection/AbstractDoctrineExtension.php | 10 +++++----- src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php | 4 ++-- src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php | 4 ++-- .../Validator/Constraints/UniqueEntityValidator.php | 2 +- .../CacheWarmer/AbstractPhpFileCacheWarmer.php | 2 +- .../CacheWarmer/AnnotationsCacheWarmer.php | 4 ++-- .../FrameworkBundle/CacheWarmer/TemplateFinder.php | 2 +- .../CacheWarmer/ValidatorCacheWarmer.php | 4 ++-- .../FrameworkBundle/Console/Descriptor/Descriptor.php | 4 ++-- .../Bundle/FrameworkBundle/HttpCache/HttpCache.php | 6 +++--- src/Symfony/Bundle/FrameworkBundle/Routing/Router.php | 6 +++--- .../Templating/Loader/TemplateLocator.php | 2 +- .../Bundle/FrameworkBundle/Translation/Translator.php | 8 ++++---- .../Security/Factory/AbstractFactory.php | 6 +++--- .../TwigBundle/Controller/ExceptionController.php | 8 ++++---- src/Symfony/Bundle/TwigBundle/TemplateIterator.php | 4 ++-- .../DependencyInjection/WebProfilerExtension.php | 2 +- .../WebProfilerBundle/Profiler/TemplateManager.php | 2 +- src/Symfony/Component/BrowserKit/Client.php | 4 ++-- .../Cache/DataCollector/CacheDataCollector.php | 2 +- .../Component/Console/Helper/DescriptorHelper.php | 4 ++-- 22 files changed, 46 insertions(+), 46 deletions(-) diff --git a/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php b/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php index 501afee922d8c..ccdd0ae45b40b 100644 --- a/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php +++ b/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php @@ -44,7 +44,7 @@ public function __construct(ManagerRegistry $registry) /** * Adds the stack logger for a connection. * - * @param string $name + * @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 7cae78dcb0612..c2c3b5a926297 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php @@ -35,7 +35,7 @@ abstract class AbstractDoctrineExtension extends Extension protected $drivers = array(); /** - * @param array $objectManager A configured object manager + * @param array $objectManager A configured object manager * * @throws \InvalidArgumentException */ @@ -170,7 +170,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 array $objectManager */ protected function registerMappingDrivers($objectManager, ContainerBuilder $container) { @@ -248,7 +248,7 @@ protected function assertValidMappingConfiguration(array $mappingConfig, $object /** * Detects what metadata driver to use for the supplied directory. * - * @param string $dir A directory path + * @param string $dir A directory path * * @return string|null A metadata driver short name, if one can be detected */ @@ -281,8 +281,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 string $cacheName + * @param array $objectManager A configured object manager + * @param string $cacheName * * @throws \InvalidArgumentException in case of unknown driver type */ diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php index dbbcba7c46512..7fa9dbf4d0334 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php @@ -268,8 +268,8 @@ public function configureOptions(OptionsResolver $resolver) /** * Return the default loader object. * - * @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 0287c6a121b8d..69c94227ff938 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php @@ -46,8 +46,8 @@ public function configureOptions(OptionsResolver $resolver) /** * Return the default loader object. * - * @param QueryBuilder $queryBuilder - * @param string $class + * @param QueryBuilder $queryBuilder + * @param string $class * * @return ORMQueryBuilderLoader */ diff --git a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php index 8488cdc876cf6..e148ee11dc871 100644 --- a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php +++ b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php @@ -34,7 +34,7 @@ public function __construct(ManagerRegistry $registry) } /** - * @param object $entity + * @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 15c9d2cc27ecd..5e1762cd7b651 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php @@ -83,7 +83,7 @@ protected function warmUpPhpArrayAdapter(PhpArrayAdapter $phpArrayAdapter, array } /** - * @param string $cacheDir + * @param string $cacheDir * * @return bool false if there is nothing to warm-up */ diff --git a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php index e539225a7cb66..58147f5eb5410 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php @@ -30,8 +30,8 @@ class AnnotationsCacheWarmer extends AbstractPhpFileCacheWarmer private $excludeRegexp; /** - * @param string $phpArrayFile The PHP file where annotations are cached - * @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered annotations are cached + * @param string $phpArrayFile The PHP file where annotations are cached + * @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered annotations are cached */ public function __construct(Reader $annotationReader, string $phpArrayFile, CacheItemPoolInterface $fallbackPool, string $excludeRegexp = null) { diff --git a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php index 6c5a8cafd8d35..8117af85fc65b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php @@ -30,7 +30,7 @@ class TemplateFinder implements TemplateFinderInterface private $templates; /** - * @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/CacheWarmer/ValidatorCacheWarmer.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php index f51ab62ee208e..1d07300ae7628 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php @@ -33,8 +33,8 @@ class ValidatorCacheWarmer extends AbstractPhpFileCacheWarmer private $validatorBuilder; /** - * @param string $phpArrayFile The PHP file where metadata are cached - * @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered metadata are cached + * @param string $phpArrayFile The PHP file where metadata are cached + * @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered metadata are cached */ public function __construct(ValidatorBuilderInterface $validatorBuilder, string $phpArrayFile, CacheItemPoolInterface $fallbackPool) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php index 783477d41ab6d..7bed38ffcfcc1 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php @@ -212,7 +212,7 @@ protected function formatParameter($value) } /** - * @param string $serviceId + * @param string $serviceId * * @return mixed */ @@ -232,7 +232,7 @@ protected function resolveServiceDefinition(ContainerBuilder $builder, $serviceI } /** - * @param bool $showPrivate + * @param bool $showPrivate * * @return array */ diff --git a/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php b/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php index 6b70403c25c00..4df8b4528267d 100644 --- a/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php +++ b/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php @@ -29,7 +29,7 @@ abstract class HttpCache extends BaseHttpCache protected $kernel; /** - * @param string $cacheDir The cache directory (default used if null) + * @param string $cacheDir The cache directory (default used if null) */ public function __construct(HttpKernelInterface $kernel, string $cacheDir = null) { @@ -42,8 +42,8 @@ public function __construct(HttpKernelInterface $kernel, string $cacheDir = null /** * Forwards the Request to the backend and returns the Response. * - * @param bool $raw Whether to catch exceptions or not - * @param Response $entry A Response instance (the stale entry if present, null otherwise) + * @param bool $raw Whether to catch exceptions or not + * @param Response $entry A Response instance (the stale entry if present, null otherwise) * * @return Response A Response instance */ diff --git a/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php b/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php index e4a41d2043042..44b90fb6a6bb5 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php +++ b/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php @@ -33,9 +33,9 @@ class Router extends BaseRouter implements WarmableInterface, ServiceSubscriberI private $collectedParameters = array(); /** - * @param mixed $resource The main resource to load - * @param array $options An array of options - * @param RequestContext $context The context + * @param mixed $resource The main resource to load + * @param array $options An array of options + * @param RequestContext $context The context */ public function __construct(ContainerInterface $container, $resource, array $options = array(), RequestContext $context = null) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php index 524e1198c7e31..214f527984180 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php @@ -27,7 +27,7 @@ class TemplateLocator implements FileLocatorInterface private $cacheHits = array(); /** - * @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/FrameworkBundle/Translation/Translator.php b/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php index 5461a021b090e..28cb596d34185 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php +++ b/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php @@ -47,15 +47,15 @@ class Translator extends BaseTranslator implements WarmableInterface private $resources = array(); /** - * Available options: + * Available options:. * * * cache_dir: The cache directory (or null to disable caching) * * debug: Whether to enable debugging or not (false by default) * * resource_files: List of translation resources available grouped by locale. * - * @param MessageFormatterInterface $formatter The message formatter - * @param array $loaderIds An array of loader Ids - * @param array $options An array of options + * @param MessageFormatterInterface $formatter The message formatter + * @param array $loaderIds An array of loader Ids + * @param array $options An array of options * * @throws InvalidArgumentException */ diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php index dcea99642ff07..718834ee60c5e 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php @@ -98,9 +98,9 @@ final public function addOption($name, $default = null) * Subclasses must return the id of a service which implements the * AuthenticationProviderInterface. * - * @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/TwigBundle/Controller/ExceptionController.php b/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php index 6961d622ed386..35c82b9c39ada 100644 --- a/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php +++ b/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php @@ -32,7 +32,7 @@ class ExceptionController protected $debug; /** - * @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) { @@ -87,9 +87,9 @@ protected function getAndCleanOutputBuffering($startObLevel) } /** - * @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/TwigBundle/TemplateIterator.php b/src/Symfony/Bundle/TwigBundle/TemplateIterator.php index d21a26ba7fed7..51d60d20ad0ec 100644 --- a/src/Symfony/Bundle/TwigBundle/TemplateIterator.php +++ b/src/Symfony/Bundle/TwigBundle/TemplateIterator.php @@ -27,8 +27,8 @@ class TemplateIterator implements \IteratorAggregate private $paths; /** - * @param string $rootDir The directory where global templates can be stored - * @param array $paths Additional Twig paths to warm + * @param string $rootDir The directory where global templates can be stored + * @param array $paths Additional Twig paths to warm */ public function __construct(KernelInterface $kernel, string $rootDir, array $paths = array()) { diff --git a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php index e8ce329c4410c..d8b039a34eaed 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php +++ b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php @@ -34,7 +34,7 @@ class WebProfilerExtension extends Extension /** * Loads the web profiler configuration. * - * @param array $configs An array of configuration settings + * @param array $configs An array of configuration settings */ public function load(array $configs, ContainerBuilder $container) { diff --git a/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php b/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php index 9e716b0b39413..680ec8d5d50f6 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php @@ -42,7 +42,7 @@ public function __construct(Profiler $profiler, Environment $twig, array $templa /** * Gets the template name for a given panel. * - * @param string $panel + * @param string $panel * * @return mixed * diff --git a/src/Symfony/Component/BrowserKit/Client.php b/src/Symfony/Component/BrowserKit/Client.php index b6bf5b0af0578..5d3291f9578a4 100644 --- a/src/Symfony/Component/BrowserKit/Client.php +++ b/src/Symfony/Component/BrowserKit/Client.php @@ -353,7 +353,7 @@ protected function doRequestInProcess($request) unlink($deprecationsFile); foreach ($deprecations ? unserialize($deprecations) : array() as $deprecation) { if ($deprecation[0]) { - trigger_error($deprecation[1], E_USER_DEPRECATED); + @trigger_error($deprecation[1], E_USER_DEPRECATED); } else { @trigger_error($deprecation[1], E_USER_DEPRECATED); } @@ -584,7 +584,7 @@ protected function getAbsoluteUri($uri) /** * Makes a request from a Request object directly. * - * @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/DataCollector/CacheDataCollector.php b/src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php index cbd4285c236e2..07687b2380423 100644 --- a/src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php +++ b/src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php @@ -30,7 +30,7 @@ class CacheDataCollector extends DataCollector implements LateDataCollectorInter private $instances = array(); /** - * @param string $name + * @param string $name */ public function addInstance($name, TraceableAdapter $instance) { diff --git a/src/Symfony/Component/Console/Helper/DescriptorHelper.php b/src/Symfony/Component/Console/Helper/DescriptorHelper.php index a3870349502f8..b6eae4814e0b7 100644 --- a/src/Symfony/Component/Console/Helper/DescriptorHelper.php +++ b/src/Symfony/Component/Console/Helper/DescriptorHelper.php @@ -48,7 +48,7 @@ public function __construct() * * format: string, the output format name * * raw_text: boolean, sets output type as raw * - * @param object $object + * @param object $object * * @throws InvalidArgumentException when the given format is not supported */ @@ -70,7 +70,7 @@ public function describe(OutputInterface $output, $object, array $options = arra /** * Registers a descriptor. * - * @param string $format + * @param string $format * * @return $this */