odolbeau / phone-number-bundle

Integrates libphonenumber into your Symfony application
MIT License
215 stars 43 forks source link

:adhesive_bandage: Fix deprecation notice in the constraint #139

Closed Nek- closed 1 year ago

Nek- commented 1 year ago

As @garak highlighted here: https://github.com/odolbeau/phone-number-bundle/issues/113#issuecomment-1382707339 the work in https://github.com/odolbeau/phone-number-bundle/pull/119 was not complete.

Since Symfony 6.1 we need to add a new attribute HasNamedArguments which is required for constraints using constructors: https://symfony.com/doc/current/validation/custom_constraint.html#creating-the-constraint-class