Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Go to file
Tomas Votruba d56e7982d0 Updated Rector to commit dedd4b55fe
dedd4b55fe make node_helper.php safe for similar names
2021-05-09 20:15:43 +00:00
.docker Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
.github Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
bin Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
build typo 2021-05-08 23:28:44 +02:00
ci Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
config Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
docs [automated] Re-Generate Nodes/Rectors Documentation (#6396) 2021-05-09 02:15:50 +02:00
packages Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
packages-tests [TASK] Take .editorconfig into account (#6272) 2021-05-06 13:26:28 +02:00
rules Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
rules-tests skip type without PHP declaration 2021-05-08 21:20:03 +02:00
src Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
stubs Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
templates Move from SETS parameter to explicit import() (#6375) 2021-05-06 20:06:31 +00:00
tests Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
upgrade Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
utils do not prefix SymfonyStyle, to keep often-used class untouched 2021-05-08 22:53:51 +02:00
.dockerignore Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
.editorconfig cleanup 2020-04-03 13:24:44 +02:00
.gitattributes [TASK] Take .editorconfig into account (#6272) 2021-05-06 13:26:28 +02:00
.gitignore [CI] Downgrade Rector to PHP 7.1 + prefix it (#5880) 2021-03-18 02:48:44 +01:00
.phpstorm.meta.php Make use of File object instead of passing around provider of file info, tokens, stmts etc. (#6110) 2021-04-13 00:12:48 +00:00
bootstrap.php Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
CHANGELOG.md [DeadCode] Remove duplicated RemoveUnusedPrivateConstantRector (#6151) 2021-04-15 23:38:44 +02:00
CODE_OF_CONDUCT.md Use HTTPS instead of HTTP 2018-02-14 07:23:09 -02:00
composer.json Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
CONTRIBUTING.md Move contributing guide to its own file 2020-03-21 14:22:10 +01:00
Dockerfile Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
ecs.php Move from SETS parameter to explicit import() (#6375) 2021-05-06 20:06:31 +00:00
full_build.sh use portable shebang 2021-04-22 21:12:02 +02:00
LICENSE Update LICENSE year forever 2018-01-02 20:27:07 -02:00
phpstan-for-rector.neon Decouple Rector PHPStan rules to own package (#6242) 2021-04-25 23:12:14 +00:00
phpstan.neon [scoped on PHP 7.0] bin/rector run with extracted phpstan (#6371) 2021-05-06 23:43:45 +02:00
phpunit.xml phpunit: run defect first 2021-04-25 15:46:45 +02:00
preload.php Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
README.md Updated Rector to commit dedd4b55fe 2021-05-09 20:15:43 +00:00
rector-testing.php [Downgrade PHP 7.2] Make covariant change local methods only (#6218) 2021-04-23 17:54:30 +00:00
rector.php [scoped on PHP 7.0] bin/rector run with extracted phpstan (#6371) 2021-05-06 23:43:45 +02:00
rule-doc-generator.php Add setter/getter factory (#6219) 2021-04-23 18:14:51 +00:00
scoper-php70.php [Scoped] Add more paths to scope (#6382) 2021-05-07 14:02:04 +00:00
scoper.php fix path 2021-05-07 02:05:48 +02:00
UPGRADE.md Add upgrade path to Rector 0.10 - upgrade set included (#6061) 2021-04-09 01:12:42 +00:00

Prefixed Rector

Build Status Github Actions Downloads

Do you have conflicts on Rector install? You're in the right place. Prefixed Rector can be installed even on very old Symfony.

Do you have older PHP? Rector prefixed goes down to PHP 7.1, so you can install it even on older projects.

Install

composer require rector/rector --dev
# generate "rector.php" config
vendor/bin/rector init

# dry run
vendor/bin/rector process src --dry-run

# changing run
vendor/bin/rector process src