We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d88d751 commit 95cf346Copy full SHA for 95cf346
1 file changed
system/Helpers/number_helper.php
@@ -77,7 +77,8 @@ function number_to_amount($num, int $precision = 0, ?string $locale = null)
77
{
78
// Strip any formatting & ensure numeric input
79
try {
80
- $num = (int) str_replace(',', '', $num);
+ // @phpstan-ignore-next-line
81
+ $num = 0 + str_replace(',', '', $num);
82
} catch (ErrorException $ee) {
83
return false;
84
}
0 commit comments