Skip to content

Commit 95cf346

Browse files
committed
fix: fix the phpstan
1 parent d88d751 commit 95cf346

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

system/Helpers/number_helper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ function number_to_amount($num, int $precision = 0, ?string $locale = null)
7777
{
7878
// Strip any formatting & ensure numeric input
7979
try {
80-
$num = (int) str_replace(',', '', $num);
80+
// @phpstan-ignore-next-line
81+
$num = 0 + str_replace(',', '', $num);
8182
} catch (ErrorException $ee) {
8283
return false;
8384
}

0 commit comments

Comments
 (0)