Skip to content

Commit 8ce2d14

Browse files
committed
The model Currency has been reverted to fix in other PR
1 parent 54e70fb commit 8ce2d14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Directory/Model/Currency.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ class Currency extends \Magento\Framework\Model\AbstractModel
2828
/**
2929
* CONFIG path constants
3030
*/
31-
public const XML_PATH_CURRENCY_ALLOW = 'currency/options/allow';
31+
const XML_PATH_CURRENCY_ALLOW = 'currency/options/allow';
3232

33-
public const XML_PATH_CURRENCY_DEFAULT = 'currency/options/default';
33+
const XML_PATH_CURRENCY_DEFAULT = 'currency/options/default';
3434

35-
public const XML_PATH_CURRENCY_BASE = 'currency/options/base';
35+
const XML_PATH_CURRENCY_BASE = 'currency/options/base';
3636

3737
/**
3838
* @var Filter
@@ -488,7 +488,7 @@ private function setOptions(array $options): void
488488
$this->numberFormatter->setSymbol(\NumberFormatter::CURRENCY_SYMBOL, '');
489489
}
490490
if (array_key_exists('precision', $options)) {
491-
$this->numberFormatter->setAttribute(\NumberFormatter::FRACTION_DIGITS, $options['precision'] ?? 0);
491+
$this->numberFormatter->setAttribute(\NumberFormatter::FRACTION_DIGITS, $options['precision']);
492492
}
493493
}
494494

0 commit comments

Comments
 (0)