Permalink
Browse files

Fixes national number integer overflow issue

  • Loading branch information...
1 parent 079c9b8 commit 6d23f9b6275ca8af9249c6243d13a5f35ac44246 @justjkk justjkk committed May 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 PhoneNumberUtil.php
View
@@ -1202,7 +1202,7 @@ private function parseHelper($numberToParse, $defaultRegion, $keepRawInput,
if ($normalizedNationalNumber[0] == '0') {
$phoneNumber->setItalianLeadingZero(true);
}
- $phoneNumber->setNationalNumber((int)$normalizedNationalNumber);
+ $phoneNumber->setNationalNumber($normalizedNationalNumber);
}

0 comments on commit 6d23f9b

Please sign in to comment.