Change money_format() to equivalent number_format()
-$value = money_format('%i', $value);
+$value = number_format(round($value, 2, PHP_ROUND_HALF_ODD), 2, '.', '');
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php74\Rector\FuncCall\MoneyFormatToNumberFormatRector;
return RectorConfig::configure()
->withRules([
MoneyFormatToNumberFormatRector::class,
]);