Skip to content

Commit

Permalink
[BUGFIX] Set correct IgnoreValidation attribute key (#4295)
Browse files Browse the repository at this point in the history
Resolves: #4294
  • Loading branch information
helsner committed Aug 1, 2024
1 parent 8380632 commit 103db71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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])]
Expand Down

0 comments on commit 103db71

Please sign in to comment.