Respect / Validation

The most awesome validation engine ever created for PHP
https://respect-validation.readthedocs.io
MIT License
5.75k stars 774 forks source link

phone() validation incorrectly invalidates valid UK phone numbers #1440

Closed reformed closed 3 months ago

reformed commented 6 months ago

UK phone numbers can include a 0 (often with brackets or parentheses) depending on if the person calling into the UK is foreign or domestic.

So if a phone number begins with +44 (0) ... this will fail, even though it is a valid UK number.

henriquemoody commented 5 months ago

Hi, @reformed! Thank you for reporting 🐼

Which version are you using? Version 2.3 should fix this issue.

henriquemoody commented 3 months ago

Based on the previous releases, I assume this issue has been fixed already in version 2.3.

I'm closing the issue to keep the repository clean.

Thank you for reporting this 🐼