Skip to content
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
2 changes: 1 addition & 1 deletion templates/validator/Constraint.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<?= $class_data->getClassDeclaration(); ?>

{
public string $message = 'The string "{{ string }}" contains an illegal character: it can only contain letters or numbers.';
public string $message = 'The string "{{ value }}" contains an illegal character: it can only contain letters or numbers.';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


// You can use #[HasNamedArguments] to make some constraint options required.
// All configurable options must be passed to the constructor.
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/make-validator/expected/FooBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
final class FooBar extends Constraint
{
public string $message = 'The string "{{ string }}" contains an illegal character: it can only contain letters or numbers.';
public string $message = 'The string "{{ value }}" contains an illegal character: it can only contain letters or numbers.';

// You can use #[HasNamedArguments] to make some constraint options required.
// All configurable options must be passed to the constructor.
Expand Down