Run Rector on your code to see what it can do for you:

 <?php
-round(1.5, 0, PHP_ROUND_HALF_UP);
+round(1.5, 0, \RoundingMode::HalfAwayFromZero);
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: ac3a94 - released at 2025-05-11 00:39