Skip to content

Commit

Permalink
Fix yiisoft#17767: Make Formatter::formatNumber method protected
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodeholic authored and samdark committed Jan 4, 2020
1 parent 1af90a9 commit 0ba67fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Yii Framework 2 Change Log
- Bug #17744: Fix a bug with setting incorrect `defaultValue` to AR column with `CURRENT_TIMESTAMP(x)` as default expression (MySQL >= 5.6.4) (bizley)
- Bug #17749: Dispatcher fix if target crashed in PHP 7.0+ (kamarton)
- Bug #17762: PHP 7.4: Remove special condition for converting PHP errors to exceptions if they occurred inside of `__toString()` call (rob006)

- Bug #17767: Make `Formatter::formatNumber` method protected (TheCodeholic)

2.0.31 December 18, 2019
------------------------
Expand Down
3 changes: 2 additions & 1 deletion framework/i18n/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1656,8 +1656,9 @@ private function getUnitMessage($unitType, $unitFormat, $system, $position)
* @param array $textOptions optional configuration for the number formatter. This parameter will be merged with [[numberFormatterTextOptions]].
* @return array [parameters for Yii::t containing formatted number, internal position of size unit]
* @throws InvalidArgumentException if the input value is not numeric or the formatting failed.
* @since 2.0.32
*/
private function formatNumber($value, $decimals, $maxPosition, $formatBase, $options, $textOptions)
protected function formatNumber($value, $decimals, $maxPosition, $formatBase, $options, $textOptions)
{
$value = $this->normalizeNumericValue($value);

Expand Down

0 comments on commit 0ba67fa

Please sign in to comment.