This commit is contained in:
Thomas Zilio 2018-11-02 11:15:40 +01:00
parent 5e61bb0adf
commit 67c1f0dcb3
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}