Rector run Failed:

{ "totals": { "changed_files": 0, "errors": 1 }, "errors": [ { "message": "System error: \"PhpParser\\PrettyPrinterAbstract::p(): Argument #1 ($node) must be of type PhpParser\\Node, null given, called in /var/www/vendor/rector/rector/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php on line 612\"\nRun Rector with \"--debug\" option and post the report here: https://github.com/rectorphp/rector/issues/new", "file": "/var/www/storage/demo/cfuin1hxzuep582ypa66/rector_analyzed_file.php", "line": 571 } ] }

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

PHP snippet to change
Config  rector.php
Rector version: e65ac6 - released at 2026-02-05 16:20