Skip to content
Closed
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 @@ -7,7 +7,7 @@
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
<?= $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.';

// 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
Loading