Skip to content

Commit d83c41a

Browse files
add support for php attributes in VatNumber constraint
1 parent 728cb2b commit d83c41a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Validator/Constraints/VatNumber.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/**
88
* @Annotation
99
*/
10+
#[\Attribute(\Attribute::TARGET_PROPERTY)]
1011
class VatNumber extends Constraint
1112
{
1213
public const INVALID_ERROR_CODE = '59421d43-d474-489c-b18c-7701329d51a0';

0 commit comments

Comments
 (0)