Try Rector
Documentation
Hire Team
Blog
Contact
Try Rector
Documentation
Hire Team
Blog
Contact
Rector run Failed:
{ "totals": { "changed_files": 0, "errors": 1 }, "errors": [ { "message": "Syntax error, unexpected '>'", "file": "../storage/demo/874yakph6obsaf3wgb9m/rector_analyzed_file.php", "line": 5 } ] }
Run Rector on your code to see what it can do for you:
PHP snippet to change
<?php $command = 'echo "test"'; $command |> passthru(...);
Config
rector.php
<?php use Rector\Config\RectorConfig; use Rector\DeadCode\Rector\Expression\RemoveDeadStmtRector; use Rector\ValueObject\PhpVersion; return RectorConfig::configure() ->withRules([ RemoveDeadStmtRector::class, ]) ->withPhpVersion(PhpVersion::PHP_85);
Run Rector
Rector version:
78e99a
- released at 2026-06-05 21:27