From 53593c8ec3fd7c3e55b93c57fbdaffa8da6ad03f Mon Sep 17 00:00:00 2001 From: Marco Germani Date: Tue, 27 Oct 2015 15:48:13 +0100 Subject: [PATCH] Update Formatter.php string type are cast to integer and have rapresentation of 2147483647 using float type instead for represent larger numbers --- framework/i18n/Formatter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/i18n/Formatter.php b/framework/i18n/Formatter.php index b9423a2dee..7e5cb1d070 100644 --- a/framework/i18n/Formatter.php +++ b/framework/i18n/Formatter.php @@ -1092,7 +1092,7 @@ class Formatter extends Component * If [[sizeFormatBase]] is 1024, [binary prefixes](http://en.wikipedia.org/wiki/Binary_prefix) (e.g. kibibyte/KiB, mebibyte/MiB, ...) * are used in the formatting result. * - * @param integer $value value in bytes to be formatted. + * @param string|integer|float $value value in bytes to be formatted. * @param integer $decimals the number of digits after the decimal point. * @param array $options optional configuration for the number formatter. This parameter will be merged with [[numberFormatterOptions]]. * @param array $textOptions optional configuration for the number formatter. This parameter will be merged with [[numberFormatterTextOptions]]. @@ -1136,7 +1136,7 @@ class Formatter extends Component * If [[sizeFormatBase]] is 1024, [binary prefixes](http://en.wikipedia.org/wiki/Binary_prefix) (e.g. kibibyte/KiB, mebibyte/MiB, ...) * are used in the formatting result. * - * @param integer $value value in bytes to be formatted. + * @param string|integer|float $value value in bytes to be formatted. * @param integer $decimals the number of digits after the decimal point. * @param array $options optional configuration for the number formatter. This parameter will be merged with [[numberFormatterOptions]]. * @param array $textOptions optional configuration for the number formatter. This parameter will be merged with [[numberFormatterTextOptions]].