Fix #342
This commit is contained in:
parent
5e61bb0adf
commit
67c1f0dcb3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue