Skip to content

Commit 9c17469

Browse files
committed
Fix @var phpdoc
1 parent 7a4bc0e commit 9c17469

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

Extension/Validator/Constraints/FormValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function validate(mixed $form, Constraint $formConstraint)
4242
return;
4343
}
4444

45-
/* @var FormInterface $form */
45+
/** @var FormInterface $form */
4646
$config = $form->getConfig();
4747

4848
$validator = $this->context->getValidator()->inContext($this->context);

Extension/Validator/ValidatorExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(ValidatorInterface $validator, bool $legacyErrorMess
4343
// the DIC, where the XML file is loaded automatically. Thus the following
4444
// code must be kept synchronized with validation.xml
4545

46-
/* @var $metadata ClassMetadata */
46+
/** @var ClassMetadata $metadata */
4747
$metadata->addConstraint(new Form());
4848
$metadata->addConstraint(new Traverse(false));
4949

Extension/Validator/ViolationMapper/ViolationMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private function matchChild(FormInterface $form, PropertyPathIteratorInterface $
253253

254254
// Test mapping rules as long as we have any
255255
foreach ($rules as $key => $rule) {
256-
/* @var MappingRule $rule */
256+
/** @var MappingRule $rule */
257257

258258
// Mapping rule matches completely, terminate.
259259
if (null !== ($form = $rule->match($chunk))) {
@@ -317,7 +317,7 @@ private function reconstructPath(ViolationPath $violationPath, FormInterface $or
317317
// Cut the piece out of the property path and proceed
318318
$propertyPathBuilder->remove($i);
319319
} else {
320-
/* @var \Symfony\Component\PropertyAccess\PropertyPathInterface $propertyPath */
320+
/** @var \Symfony\Component\PropertyAccess\PropertyPathInterface $propertyPath */
321321
$propertyPath = $scope->getPropertyPath();
322322

323323
if (null === $propertyPath) {

FormBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function count(): int
147147

148148
public function getFormConfig(): FormConfigInterface
149149
{
150-
/** @var $config self */
150+
/** @var self $config */
151151
$config = parent::getFormConfig();
152152

153153
$config->children = [];

FormErrorIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function __toString(): string
7777
if ($error instanceof FormError) {
7878
$string .= 'ERROR: '.$error->getMessage()."\n";
7979
} else {
80-
/* @var self $error */
80+
/** @var self $error */
8181
$string .= $error->getForm()->getName().":\n";
8282
$string .= self::indent((string) $error);
8383
}

ResolvedFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function finishView(FormView $view, FormInterface $form, array $options)
130130
$this->innerType->finishView($view, $form, $options);
131131

132132
foreach ($this->typeExtensions as $extension) {
133-
/* @var FormTypeExtensionInterface $extension */
133+
/** @var FormTypeExtensionInterface $extension */
134134
$extension->finishView($view, $form, $options);
135135
}
136136
}

Tests/SimpleFormTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ public function testInitializeSetsDefaultData()
10521052
$config = $this->getBuilder()->setData('DEFAULT')->getFormConfig();
10531053
$form = new Form($config);
10541054

1055-
/* @var Form $form */
1055+
/** @var Form $form */
10561056
$form->initialize();
10571057

10581058
$this->assertSame('DEFAULT', $form->getData());

0 commit comments

Comments
 (0)