Find the best Rector rule to solve your problem. Searching through 655 rules.

Found 2 rules:

RoundingModeEnumRector

Replace rounding mode constant to RoundMode enum in round()

-round(1.5, 0, PHP_ROUND_HALF_UP);
+round(1.5, 0, RoundingMode::HalfAwayFromZero);
SETS:  PHP 8.4

ExplicitNullableParamTypeRector

Make implicit nullable param to explicit

-function foo(string $param = null) {}
+function foo(?string $param = null) {}
SETS:  PHP 8.4