Rector run Failed:

{ "totals": { "changed_files": 0, "errors": 1 }, "errors": [ { "message": "System error: \"PhpParser\\Node\\Expr\\BinaryOp::__construct(): Argument #2 ($right) must be of type PhpParser\\Node\\Expr, null given, called in /var/www/vendor/rector/rector/rules/DeadCode/Rector/If_/RemoveDeadIfBlockRector.php on line 121\"\nRun Rector with \"--debug\" option and post the report here: https://github.com/rectorphp/rector/issues/new", "file": "/var/www/storage/demo/34goye9ja9armjyknpll/rector_analyzed_file.php", "line": 20 } ] }

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

PHP snippet to change
Config  rector.php
Rector version: ffbf10 - released at 2026-04-05 15:21