Skip to content

Commit

Permalink
Merge pull request #183 from goldbroker/allow-constraint-on-method
Browse files Browse the repository at this point in the history
Allow to use PhoneNumber Constraint on methods
  • Loading branch information
odolbeau authored Jan 9, 2025
2 parents babf222 + cdd2ac2 commit 6501d17
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 @@ -23,7 +23,7 @@
* @Annotation
* @NamedArgumentConstructor
*/
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::IS_REPEATABLE)]
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
class PhoneNumber extends Constraint
{
public const ANY = 'any';
Expand Down

0 comments on commit 6501d17

Please sign in to comment.