diff --git a/src/Validator/Constraints/MoneyGreaterThan.php b/src/Validator/Constraints/MoneyGreaterThan.php index 018bfbf..9218f93 100644 --- a/src/Validator/Constraints/MoneyGreaterThan.php +++ b/src/Validator/Constraints/MoneyGreaterThan.php @@ -15,6 +15,7 @@ /** * @Annotation */ +#[\Attribute] class MoneyGreaterThan extends Constraint { public string $message = 'This value must be greater than {{ compareWith }}!'; diff --git a/src/Validator/Constraints/MoneyGreaterThanOrEqual.php b/src/Validator/Constraints/MoneyGreaterThanOrEqual.php index 7ab207f..704c066 100644 --- a/src/Validator/Constraints/MoneyGreaterThanOrEqual.php +++ b/src/Validator/Constraints/MoneyGreaterThanOrEqual.php @@ -15,6 +15,7 @@ /** * @Annotation */ +#[\Attribute] class MoneyGreaterThanOrEqual extends Constraint { public string $message = 'This value must be greater than or equal to {{ compareWith }}!';