giggsey / libphonenumber-for-php

PHP version of Google's phone number handling library
https://giggsey.com/libphonenumber/
Apache License 2.0
4.76k stars 468 forks source link

Fatal error: Uncaught Error type: 1. The string supplied did not seem to be a phone number. #601

Closed tree28 closed 1 year ago

tree28 commented 1 year ago

An Observation- When testing a number from the wild uncaught errors can stop processes when numbers do not confirm, which can often be true from numbers entered from the wild.

The number supplied was: 1 0 also produces the error.

An Edit- It appears that single digit numbers provide the error. I have only tested 0 1 2 3.

The error– Fatal error: Uncaught Error type: 1. The string supplied did not seem to be a phone number. thrown in /var/www/vendor/giggsey/libphonenumber-for-php/src/PhoneNumberUtil.php on line 1673

giggsey commented 1 year ago

Closing in favour of #602