Skip to content

Commit

Permalink
Merge pull request #25462 from demeritcowboy/number
Browse files Browse the repository at this point in the history
dev/core#4097 - Add deprecation notice as per comments at #25448
  • Loading branch information
eileenmcnaughton authored Jan 30, 2023
2 parents 8d6d173 + a0246f5 commit 2249041
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Utils/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public static function formatUnitSize($size, $checkForPostMax = FALSE) {
*/
public static function formatLocaleNumeric(string $amount, $locale = NULL): string {
if ($amount === "") {
CRM_Core_Error::deprecatedWarning('Passing an empty string for amount is deprecated.');
return $amount;
}

Expand Down

0 comments on commit 2249041

Please sign in to comment.