Skip to content

Commit 72a5a08

Browse files
committed
bug fix
1 parent 0b5e376 commit 72a5a08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhoneHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,13 @@ private static function getCountryCodeFromPhoneNumber(string $phoneNumber): ?str
308308
foreach ($country as $subCode => $prefixes) {
309309
foreach ($prefixes as $prefix) {
310310
if (\str_starts_with($phoneNumber, '+' . $code . $prefix)) {
311-
return $code;
311+
return (string) $code;
312312
}
313313
}
314314
}
315315
} else {
316316
if (\str_starts_with($phoneNumber, '+' . $code)) {
317-
return $code;
317+
return (string) $code;
318318
}
319319
}
320320
}

0 commit comments

Comments
 (0)