Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Go to file
Abdul Malik Ikhsan e5c94a20cf
[DeadCode] Handle skipped RemoveUnreachableStatementRector on MultiDirnameRector (#2129)
* [DeadCode] Handle skipped RemoveUnreachableStatementRector on MultiDirnameRector

* Fixed 🎉

* Fixed 🎉

* add fixture for has side effect not return early

* final touch: first stmt is never removed

* final touch: back start from - 2 as jump

* really final touch: clean up

* really final touch: comment

* final touch: no - 1 means it already last, so skip early
2022-04-23 01:00:40 +02:00
.github [DX] RectorConfig - add ruleWithConfiguration() and other methods (#2043) 2022-04-10 19:36:55 +02:00
bin [TypeDeclaration] Add ArrayShapeFromConstantArrayReturnRector (#1908) 2022-03-07 12:28:39 +01:00
build build docs (#2090) 2022-04-17 21:16:39 +02:00
config [DX] Update to use Method Call from RectorConfig on rector configs ( config/set dir) (#2108) 2022-04-20 18:23:30 +00:00
dev-docs fix links 2021-11-02 11:43:06 +01:00
docs/testing Added test for Rectors making additional changes (#545) 2021-08-06 08:39:47 +02:00
e2e [DX] Add phpVersion() method to RectorConfig + make use of new config class in test configs (#2065) 2022-04-12 16:33:33 +02:00
packages Simplify RemoveUnreachableStatementRector to use less connecting nodes (#2125) 2022-04-22 17:16:42 +02:00
packages-tests [DX] Update to use Method Call from RectorConfig on rector configs ( packages-tests/ dir) (#2107) 2022-04-20 17:54:25 +00:00
rules [DeadCode] Handle skipped RemoveUnreachableStatementRector on MultiDirnameRector (#2129) 2022-04-23 01:00:40 +02:00
rules-tests [DeadCode] Handle skipped RemoveUnreachableStatementRector on MultiDirnameRector (#2129) 2022-04-23 01:00:40 +02:00
src [Php71] Remove PropertyFetchAnalyzer::isFilledByConstructParam (#2122) 2022-04-22 02:43:25 +02:00
stubs [MockeryToProphecy] Deprecate micro set as not practical (#1899) 2022-03-03 17:31:12 +01:00
templates [docs] Improve first-time contributors docs (#2061) 2022-04-12 10:52:46 +02:00
tests [DX] Update super old configure to RectorConfig (#2121) 2022-04-22 00:38:19 +02:00
utils [Core] Rollback ParameterProvider autowire into AbstractRector (#2095) 2022-04-19 10:04:23 +02:00
.editorconfig cleanup 2020-04-03 13:24:44 +02:00
.gitattributes [gitattributes] do not export test in packagist dependency (#228) 2021-06-15 16:14:58 +02:00
.gitignore Minimal Docker runtime (#998) 2021-10-13 14:54:13 +02:00
.phpstorm.meta.php Refactor CLASS_NAME to parent/scope name resolver (#1170) 2021-11-06 21:25:28 +01:00
CODE_OF_CONDUCT.md Use HTTPS instead of HTTP 2018-02-14 07:23:09 -02:00
composer.json remove nette/neon dependency as not used directly 2022-04-20 21:00:15 +02:00
CONTRIBUTING.md [docs] your name 2022-04-12 10:53:33 +02:00
docker-compose.yml [Docker] Switch COMPOSER_ROOT_VERSION to dev-main (#1015) 2021-10-17 18:24:38 +07:00
Dockerfile Make patch available in docker image (#1801) 2022-02-11 01:13:23 +07:00
easy-ci.php [DX] Use RectorConfig in configs (#2063) 2022-04-12 13:46:07 +02:00
ecs.php Bump PHPStan, ECS and Symplify to 10.2 + make use of brand new ECSConfig (#2076) 2022-04-14 23:22:08 +02:00
full_build.sh Revert [Scoped] Register src/functions to downgrade-rector.sh and DowngradePathsCommand (#1966) (#1967) 2022-03-26 20:24:37 +00:00
LICENSE Update LICENSE year forever 2018-01-02 20:27:07 -02:00
monorepo-builder.php add monorepo builder for faster relases 2021-08-11 17:43:49 +02:00
phpstan-for-rector.neon Reworking trait scope run (#952) 2021-10-04 23:11:10 +02:00
phpstan.neon simplify RemoveDoubleAssignRector to use less connecting nodes (#2126) 2022-04-22 17:50:53 +02:00
phpunit.xml Upgrade to Symplify not using symfony/http-kernel (#1119) 2021-11-01 14:20:45 +01:00
preload.php Bump Symplify package - use new location for console differ + value object inliner (#1841) 2022-02-20 12:56:50 +01:00
README.md Bump min to PHP 7.2 (#1955) 2022-03-24 22:17:08 +01:00
rector.php [DeadCode] Handle skipped RemoveUnreachableStatementRector on MultiDirnameRector (#2129) 2022-04-23 01:00:40 +02:00
rule-doc-generator.php [DX] Use RectorConfig in configs (#2063) 2022-04-12 13:46:07 +02:00
scoper.php [Scoper] Clean up missing use with prefixed (#2003) 2022-04-03 01:57:47 +00:00

Rector - Instant Upgrades and Automated Refactoring

Downloads


This repository (rectorphp/rector-src) is for development Rector only. Head to rectorphp/rector for documentation, install or creating an issue.


Building rectorphp/rector

Code of this repository requires PHP 8. For rector/rector package user the build downgrades code to PHP 7.2 and higher.

How to Contribute

Please read contributing guideline for how to contribute to rector.

Code of Conduct

This project adheres to a Contributor Code of Conduct By participating in this project and its community, you are expected to uphold this code.