mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
fix: fix the phpstan
This commit is contained in:
parent
d88d751976
commit
95cf346eb1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user