Skip to content

Commit

Permalink
feat: make constraint repeatable
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ostrovsky authored and Alex Ostrovsky committed Dec 6, 2023
1 parent d8fccfb commit edf353e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator/Constraints/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @Annotation
* @NamedArgumentConstructor
*/
#[\Attribute(\Attribute::TARGET_PROPERTY)]
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::IS_REPEATABLE)]
class PhoneNumber extends Constraint
{
public const ANY = 'any';
Expand Down

0 comments on commit edf353e

Please sign in to comment.