Update Formatter.php

In according with the open discussion
This commit is contained in:
Marco Germani
2015-11-20 22:45:38 +01:00
parent 53593c8ec3
commit 5747557794

View File

@@ -1188,7 +1188,7 @@ class Formatter extends Component
private function formatSizeNumber($value, $decimals, $options, $textOptions)
{
if (is_string($value) && is_numeric($value)) {
$value = (int) $value;
$value = (float) $value;
}
if (!is_numeric($value)) {
throw new InvalidParamException("'$value' is not a numeric value.");