From 30798df4443f0c4fe47ec9f53405193b01a6a922 Mon Sep 17 00:00:00 2001 From: Julien Waguet Date: Fri, 11 Apr 2025 14:12:35 +0200 Subject: [PATCH] Replace annotation by attribute --- src/Validator/Constraints/Percent.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;