diff --git a/rules/TYPO312/AnnotationToAttribute/IgnoreValidationAttributeDecorator.php b/rules/TYPO312/AnnotationToAttribute/IgnoreValidationAttributeDecorator.php index 387525dc7..aee35ffae 100644 --- a/rules/TYPO312/AnnotationToAttribute/IgnoreValidationAttributeDecorator.php +++ b/rules/TYPO312/AnnotationToAttribute/IgnoreValidationAttributeDecorator.php @@ -28,7 +28,7 @@ public function decorate(Attribute $attribute): void $newArguments = new Array_(); foreach ($attribute->args as $arg) { - $key = $arg->name instanceof Identifier ? new String_($arg->name->toString()) : new String_('value'); + $key = $arg->name instanceof Identifier ? new String_($arg->name->toString()) : new String_('argumentName'); $newArguments->items[] = new ArrayItem($arg->value, $key); } diff --git a/tests/Rector/v12/v0/typo3/ExtbaseAnnotationToAttributeRector/Fixture/fixture.php.inc b/tests/Rector/v12/v0/typo3/ExtbaseAnnotationToAttributeRector/Fixture/fixture.php.inc index 216752cd9..79e04344c 100644 --- a/tests/Rector/v12/v0/typo3/ExtbaseAnnotationToAttributeRector/Fixture/fixture.php.inc +++ b/tests/Rector/v12/v0/typo3/ExtbaseAnnotationToAttributeRector/Fixture/fixture.php.inc @@ -74,7 +74,7 @@ class MyClass #[Validate(['validator' => NotEmptyValidator::class])] protected $propertyWithValidateAnnotations; - #[Extbase\IgnoreValidation(['value' => 'param'])] + #[Extbase\IgnoreValidation(['argumentName' => 'param'])] public function method($param) {} #[Extbase\Validate(['param' => 'request', 'validator' => NotEmptyValidator::class])]