The US file in library not supporting the Verizon phone number. vendor/zendframework/library/Zend/I18n/Validator/PhoneNumber/US.php
7373468043
7373469123
7373469190
7373469299
7373467736
The US file in library not supporting the Verizon phone number. vendor/zendframework/library/Zend/I18n/Validator/PhoneNumber/US.php
7373468043
7373469123
7373469190
7373469299
7373467736
Hello and welcome to the forums!
Unfortunately I can not reproduce the problem. Please see the following example:
$phoneNumbers = [
'7373468043',
'7373469123',
'7373469190',
'7373469299',
'7373467736',
];
$validator = new Laminas\I18n\Validator\PhoneNumber();
$validator->setCountry('US');
foreach ($phoneNumbers as $phoneNumber) {
var_dump($validator->isValid($phoneNumber)); // all true
}
The same result creates the outdated component “zend-i18n”.
Can you provide a code example which fails? Thanks in advance!