X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FMoney.php;h=3cc33e4226cc7757f95b975aa93afeb7e2109033;hb=1e6710cf101224df1be75c7163a0d13ca3eb467f;hp=a67ac1b63361b83ceaf5de7da816372d379e3bf1;hpb=82fe8be2496c351b6f155d0b0b7bdc198c66a30a;p=civicrm-core.git diff --git a/CRM/Utils/Money.php b/CRM/Utils/Money.php index a67ac1b633..3cc33e4226 100644 --- a/CRM/Utils/Money.php +++ b/CRM/Utils/Money.php @@ -146,9 +146,9 @@ class CRM_Utils_Money { * 1.234 != 1.236 with a currency precision of 2 decimal points * 1.300 != 1.200 with a currency precision of 2 decimal points * - * @param $value1 - * @param $value2 - * @param $currency + * @param int|float $value1 + * @param int|float $value2 + * @param string $currency * * @return bool */ @@ -194,7 +194,7 @@ class CRM_Utils_Money { * * @return string */ - protected static function formatUSLocaleNumericRounded($amount, int $numberOfPlaces): string { + public static function formatUSLocaleNumericRounded($amount, int $numberOfPlaces): string { if (!extension_loaded('intl') || !is_numeric($amount)) { // @todo - we should not attempt to format non-numeric strings. For now // these will not fail but will give notices on php 7.4