odolbeau / phone-number-bundle

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

deprecation: $errorNames is considered final #114

Closed garak closed 2 years ago

garak commented 2 years ago

Using this bundle (version 3.6.2) with the latest Symfony version (currently 6.1.1), I get the following deprecation warning:

User Deprecated: The "Symfony\Component\Validator\Constraint::$errorNames" property is considered final. You should not override it in "Misd\PhoneNumberBundle\Validator\Constraints\PhoneNumber".

You should use the protected constant ERROR_NAMES instead.

maxhelias commented 2 years ago

Should be fix soon with https://github.com/odolbeau/phone-number-bundle/pull/110/files