fix: Add one more limit type.

This commit is contained in:
ping-yee 2023-06-30 12:58:24 +08:00
parent 5d7b886434
commit b8524e805b
No known key found for this signature in database
GPG Key ID: B4B8BE504AD38940

View File

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