fix: fix the phpstan

This commit is contained in:
ping-yee 2023-07-03 13:44:38 +08:00
parent d88d751976
commit 95cf346eb1
No known key found for this signature in database
GPG Key ID: B4B8BE504AD38940

View File

@ -77,7 +77,8 @@ if (! function_exists('number_to_amount')) {
{
// Strip any formatting & ensure numeric input
try {
$num = (int) str_replace(',', '', $num);
// @phpstan-ignore-next-line
$num = 0 + str_replace(',', '', $num);
} catch (ErrorException $ee) {
return false;
}