From 67c1f0dcb39f90783bfd0b28f8163477f5b39660 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Fri, 2 Nov 2018 11:15:40 +0100 Subject: [PATCH] Fix #342 --- src/Intl/Formatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Intl/Formatter.php b/src/Intl/Formatter.php index 16c22b0fd..fdb79cff3 100644 --- a/src/Intl/Formatter.php +++ b/src/Intl/Formatter.php @@ -162,7 +162,7 @@ class Formatter $pieces = explode($this->getNumberSeparators()['decimals'], $value); $integer = str_replace(array_values($this->getNumberSeparators()), '', $pieces[0]); - if (!ctype_digit($number) || (strlen($integer) != strlen((int) $integer))) { + if (!ctype_digit($number) || (strlen($integer) != strlen((int) $integer)) || is_numeric($value)) { return false; }