mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
fix: Add one more limit type.
This commit is contained in:
parent
5d7b886434
commit
b8524e805b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user