This commit is contained in:
2022-03-02 21:02:58 +01:00
parent c0ec64e4be
commit b9eee51de6
2 changed files with 3 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ class ExtractPhonenumberFromPattern
} else {
throw new LogicException('should not match not alnum character');
}
break;
case '0':
@@ -57,7 +58,7 @@ class ExtractPhonenumberFromPattern
if (0 === $key) {
$util = PhoneNumberUtil::getInstance();
$phonenumber[] = '+'.$util->getCountryCodeForRegion($this->defaultCarrierCode);
$phonenumber[] = '+' . $util->getCountryCodeForRegion($this->defaultCarrierCode);
} else {
$phonenumber[] = $char;
}