diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/TestBundle.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/TestBundle.php index d0c6588b00568..73cb63d1fe259 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/TestBundle.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/TestBundle.php @@ -24,7 +24,7 @@ public function build(ContainerBuilder $container): void { parent::build($container); - /** @var $extension DependencyInjection\TestExtension */ + /** @var DependencyInjection\TestExtension $extension */ $extension = $container->getExtension('test'); if (!$container->getParameterBag() instanceof FrozenParameterBag) { diff --git a/src/Symfony/Component/Form/Extension/Validator/ValidatorExtension.php b/src/Symfony/Component/Form/Extension/Validator/ValidatorExtension.php index 522a7696293f6..2c534481cd6ee 100644 --- a/src/Symfony/Component/Form/Extension/Validator/ValidatorExtension.php +++ b/src/Symfony/Component/Form/Extension/Validator/ValidatorExtension.php @@ -40,7 +40,7 @@ public function __construct( // the DIC, where the XML file is loaded automatically. Thus the following // code must be kept synchronized with validation.xml - /* @var $metadata ClassMetadata */ + /* @var ClassMetadata $metadata */ $metadata->addConstraint(new Form()); $metadata->addConstraint(new Traverse(false)); } diff --git a/src/Symfony/Component/Form/FormBuilder.php b/src/Symfony/Component/Form/FormBuilder.php index 2bfd92a68826e..f34c2f76eb74d 100644 --- a/src/Symfony/Component/Form/FormBuilder.php +++ b/src/Symfony/Component/Form/FormBuilder.php @@ -142,7 +142,7 @@ public function count(): int public function getFormConfig(): FormConfigInterface { - /** @var $config self */ + /** @var self $config */ $config = parent::getFormConfig(); $config->children = []; diff --git a/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php b/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php index c4a768798657f..236add6294965 100644 --- a/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php +++ b/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php @@ -80,7 +80,7 @@ public function __construct(?DocBlockFactoryInterface $docBlockFactory = null, ? public function getShortDescription(string $class, string $property, array $context = []): ?string { - /** @var $docBlock DocBlock */ + /** @var DocBlock $docBlock */ [$docBlock] = $this->findDocBlock($class, $property); if (!$docBlock) { return null; @@ -107,7 +107,7 @@ public function getShortDescription(string $class, string $property, array $cont public function getLongDescription(string $class, string $property, array $context = []): ?string { - /** @var $docBlock DocBlock */ + /** @var DocBlock $docBlock */ [$docBlock] = $this->findDocBlock($class, $property); if (!$docBlock) { return null; @@ -120,7 +120,7 @@ public function getLongDescription(string $class, string $property, array $conte public function getTypes(string $class, string $property, array $context = []): ?array { - /** @var $docBlock DocBlock */ + /** @var DocBlock $docBlock */ [$docBlock, $source, $prefix] = $this->findDocBlock($class, $property); if (!$docBlock) { return null; @@ -199,7 +199,7 @@ public function getTypesFromConstructor(string $class, string $property): ?array */ public function getType(string $class, string $property, array $context = []): ?Type { - /** @var $docBlock DocBlock */ + /** @var DocBlock $docBlock */ [$docBlock, $source, $prefix] = $this->findDocBlock($class, $property); if (!$docBlock) { return null; diff --git a/src/Symfony/Component/Routing/Tests/Fixtures/validresource.php b/src/Symfony/Component/Routing/Tests/Fixtures/validresource.php index 31d354a34cd00..c0cf4db0e1cae 100644 --- a/src/Symfony/Component/Routing/Tests/Fixtures/validresource.php +++ b/src/Symfony/Component/Routing/Tests/Fixtures/validresource.php @@ -1,6 +1,6 @@ import('validpattern.php'); $collection->addDefaults([