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]].