diff --git a/src/Validator/Constraints/Percent.php b/src/Validator/Constraints/Percent.php index 53fb0f7..9888308 100644 --- a/src/Validator/Constraints/Percent.php +++ b/src/Validator/Constraints/Percent.php @@ -7,11 +7,9 @@ use Symfony\Component\Validator\Constraint; /** - * @Annotation - * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) - * * @author Sylvain Fabre */ +#[\Attribute] class Percent extends Constraint { public readonly int $min;