Find the best Rector rule to solve your problem. Searching through 897 rules.
Found 9 rules:
Remove parentheses on new method call with parentheses
-(new Request())->withMethod('GET')->withUri('/hello-world');
+new Request()->withMethod('GET')->withUri('/hello-world');
Add escape argument on CSV function calls
-str_getcsv($string, separator: ',', enclosure: '"');
+str_getcsv($string, separator: ',', enclosure: '"', escape: '\\');
Replace rounding mode constant to RoundMode enum in round()
-round(1.5, 0, PHP_ROUND_HALF_UP);
+round(1.5, 0, RoundingMode::HalfAwayFromZero);
Make implicit nullable param to explicit
-function foo(string $param = null) {}
+function foo(?string $param = null) {}
Replace foreach with boolean assignment + break OR foreach with early return with array_any
Replace foreach with boolean assignment and break OR foreach with early return with array_all
Change @deprecated annotation to Deprecated attribute