Skip to content

Commit

Permalink
Add attribute to validators
Browse files Browse the repository at this point in the history
  • Loading branch information
benr77 committed Feb 19, 2023
1 parent 1654702 commit 0489416
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Validator/Constraints/MoneyGreaterThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* @Annotation
*/
#[\Attribute]
class MoneyGreaterThan extends Constraint
{
public string $message = 'This value must be greater than {{ compareWith }}!';
Expand Down
1 change: 1 addition & 0 deletions src/Validator/Constraints/MoneyGreaterThanOrEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* @Annotation
*/
#[\Attribute]
class MoneyGreaterThanOrEqual extends Constraint
{
public string $message = 'This value must be greater than or equal to {{ compareWith }}!';
Expand Down

0 comments on commit 0489416

Please sign in to comment.