Try Rector
Hire Team
Find Rule
NEW
Contact
Blog
Docs
AST
NEW
Run Rector on your code to see what it can do for you:
// no change
PHP snippet to change
<?php use const Foo\Bar; use const Baz\bar; bar::class;
Config
rector.php
<?php use Rector\Config\RectorConfig; return RectorConfig::configure() ->withPhpSets(php82: true) ->withImportNames(removeUnusedImports: true);
Run Rector
Rector version:
099d0b
- released at 2025-03-25 12:47