Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Go to file
Brandon Olivares 138aa5ea68
Param doctype not copied to property in DowngradePropertyPromotionRector (#734)
* Param doctype not copied to property in DowngradePropertyPromotionRector

* Fix fixture by adding strict types

* Add param type to downgraded property

* Update rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php

Change how constructor is found

Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>

Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
2021-08-22 22:52:44 +02:00
.github [Scoped] Wait 3 minutes before checkout rectorphp/rector-src on create a tag (#620) 2021-08-08 18:54:24 +02:00
bin [Core] Replace deprecated ShellCode:: with Symfony Command:: for status (#737) 2021-08-22 22:52:09 +02:00
build [PHPStan] Update PHPStan to 0.12.95 (#724) 2021-08-21 19:35:17 +02:00
config Move DowngradeSelfTypeDeclarationRector to downgrade-php70 (#623) 2021-08-08 21:53:24 +02:00
dev-docs [docs] add typo3 badges 2021-07-03 00:14:25 +02:00
docs/testing Added test for Rectors making additional changes (#545) 2021-08-06 08:39:47 +02:00
packages [NodeTypeResolver] Clean up PHPStanNodeScopeResolver (#713) 2021-08-19 04:05:31 +00:00
packages-tests [Windows] Add platform agnostic asserts (#461) 2021-08-16 07:08:51 +00:00
patches add symfony/dependency-injectoin wiht completed types 2021-07-05 21:29:59 +02:00
rules Param doctype not copied to property in DowngradePropertyPromotionRector (#734) 2021-08-22 22:52:44 +02:00
rules-tests Param doctype not copied to property in DowngradePropertyPromotionRector (#734) 2021-08-22 22:52:44 +02:00
src [Core] Add Smarty Support for PhpFilesFinder check non-PHP files (#736) 2021-08-22 22:52:24 +02:00
stubs [TypeDeclaration] Add ParamTypeByParentCallTypeRector (#519) 2021-07-28 19:34:42 +00:00
stubs-rector/PHPUnit/Framework Fixing build (#25) 2021-05-12 15:31:11 +02:00
templates Move from SETS parameter to explicit import() (#6375) 2021-05-06 20:06:31 +00:00
tests [CodeQuality][TypeDeclaration] Handle ExplicitBoolCompareRector + ReturnTypeDeclarationRector on auto import return (#710) 2021-08-18 16:32:08 +07:00
utils [Core] Replace deprecated ShellCode:: with Symfony Command:: for status (#737) 2021-08-22 22:52:09 +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 [CI] Downgrade Rector to PHP 7.1 + prefix it (#5880) 2021-03-18 02:48:44 +01:00
.phpstorm.meta.php [DX] Add MissedRectorDueVersionChecker (#465) 2021-07-21 11:26:10 +02:00
CODE_OF_CONDUCT.md Use HTTPS instead of HTTP 2018-02-14 07:23:09 -02:00
composer.json [PHPStan] Update PHPStan to 0.12.95 (#724) 2021-08-21 19:35:17 +02:00
CONTRIBUTING.md [Doc] Add CONTRIBUTING.md (#79) 2021-05-20 00:34:39 +01:00
ecs.php [Config] Set config/, utils/ to rector config paths (#571) 2021-08-02 11:33:54 +02:00
full_build.sh [DowngradePhp80] Early Register DowngradeNamedArgumentRector then DowngradeAttributeToAnnotationRector (#367) 2021-07-04 12:26:29 +02: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 [scoped] Run e2e parallel, suck in existing tests (#16) 2021-05-11 18:06:27 +02:00
phpstan.neon [PHPStan] Update PHPStan to 0.12.95 (#724) 2021-08-21 19:35:17 +02:00
phpunit.xml Fix ci of missing PHPStan extension types (#43) 2021-05-15 14:18:20 +00:00
preload.php [automated] Re-Generate preload.php (#618) 2021-08-08 00:14:14 +00:00
README.md [Doc] Add CONTRIBUTING.md (#79) 2021-05-20 00:34:39 +01:00
rector.php [CodeQuality] CodeQuality config set list clean up (#606) 2021-08-06 22:01:54 +02:00
rule-doc-generator.php Add setter/getter factory (#6219) 2021-04-23 18:14:51 +00:00
scoper.php [Scoper] Fix PHPUnit scoper IsEqual (#693) 2021-08-16 08:24:05 +00:00
UPGRADE.md Add upgrade path to Rector 0.10 - upgrade set included (#6061) 2021-04-09 01:12:42 +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.1 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.