Skip to content

Make @var occurrences consistent #58432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Form/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function count(): int

public function getFormConfig(): FormConfigInterface
{
/** @var $config self */
/** @var self $config */
$config = parent::getFormConfig();

$config->children = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

/** @var $loader \Symfony\Component\Routing\Loader\PhpFileLoader */
/** @var \Symfony\Component\Routing\Loader\PhpFileLoader $loader */
/** @var \Symfony\Component\Routing\RouteCollection $collection */
$collection = $loader->import('validpattern.php');
$collection->addDefaults([
Expand Down