Fixes #15015: Added StringHelper::floatToString() to savely cast float values independent of the locale, also fixes some places in the framework that use it now

This commit is contained in:
Carsten Brandt
2017-10-27 10:41:45 +02:00
committed by Alexander Makarov
parent f259eadf7a
commit 93bbf5b39d
12 changed files with 40 additions and 13 deletions

View File

@ -478,7 +478,7 @@ class BaseArrayHelper
$value = static::getValue($element, $key);
if ($value !== null) {
if (is_float($value)) {
$value = (string) $value;
$value = StringHelper::floatToString($value);
}
$lastArray[$value] = $element;
}