Replace rounding mode constant to RoundMode enum in round()
-round(1.5, 0, PHP_ROUND_HALF_UP);
+round(1.5, 0, RoundingMode::HalfAwayFromZero);
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php84\Rector\FuncCall\RoundingModeEnumRector;
return RectorConfig::configure()
->withRules([
RoundingModeEnumRector::class,
]);