15 Commits

Author SHA1 Message Date
Tomas Votruba
ca5399b249
[Downgrade] Fix file matching for ChangePhpVersionInPlatformCheckRector (#4763) 2020-12-03 12:27:00 +00:00
Tomas Votruba
d962e3f6b0
[Downgrade] Add composer platform check (#4721) 2020-11-28 00:16:19 +01:00
Leonardo Losoviz
4eacc84b22
Organize downgrades by PHP version (#4147)
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-08 13:12:38 +02:00
Tomas Votruba
6508aedd13
[Downgrade PHP 8.0] Add union types to doc types (#4082) 2020-09-08 12:00:38 +02:00
Leonardo Losoviz
ffd1e7fbec
Restructure class hierarchy to implement downgrade rules (#4142) 2020-09-08 11:40:56 +02:00
Leonardo Losoviz
a0f99c2c7f
Downgrade arrow functions (#4137)
* Extracted rule into abstract class for reuse

* Implemented rule

* Added rule to downgrade set

* Fixed rector-ci errors

* Fixed cs

* Preserve return type

* Direct assignment of parameters

* Use interface instead of abstract methods

* Moved abstract class under Php72

* Added test for params with type
2020-09-07 15:38:03 +02:00
Leonardo Losoviz
c6203e96d2
Downgrade null coalescing operator (#4135)
* Return `null` to signify no change to the node

* Implemented rector

* Added new rule to downgrade set

* Test requires PHP 7.4

* Wrapped code inside class
2020-09-07 14:50:42 +02:00
Leonardo Losoviz
0deb805a31
Commented out vendor locking (#4132) 2020-09-05 12:34:38 +02:00
Leonardo Losoviz
71682d2b52
Abstract downgrade type + Implementation for object type (#4118) 2020-09-04 11:57:12 +02:00
Tomas Votruba
7ac228c638
[CI] Add type-declaration set (#4089)
* [CI] Add type-declaration set

* [rector] [CI] Add type-declaration set

* [cs] [CI] Add type-declaration set

* skip nullable void

* add anonymous parent/interface support

* refactor MultiExceptionCatchRector to use Catch_ over integers

* type fixes

* fix unoin array type override

* remove unused test cases

* drop overcomplicated InlineValidationRulesToArrayDefinitionRector

* skip assign on var

* [rector] skip assign on var

* [cs] skip assign on var

* [rector] [cs] skip assign on var

* skip assign on var

* fixes

* [rector] fixes

* [cs] fixes

Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-01 17:56:30 +00:00
Leonardo Losoviz
02e703b9b9
Configurable downgrade (#4099) 2020-09-01 18:12:01 +02:00
Tomas Votruba
55acb3578a
[MagicDisclosure] Add SetterOnSetterMethodCallToStandaloneAssignRector (#3860)
* [MagicDisclosure] Add MethodCallOnSetterMethodCallToStandaloneAssignRector

* merge ChainMethodCallManipulator to ChainMethodCallNodeAnalyzer for better DX

* [MagicDisclosure] Add in arg defluent

* rebase
2020-08-01 11:41:16 +00:00
TomasVotruba
8705aea928 update tests 2020-07-26 18:15:31 +02:00
TomasVotruba
bc1a73f76d rename duplicated short name to DonwgradeTypedPropertyRector 2020-07-26 17:13:35 +02:00
dobryy
8df866b3ca [Downgrade] PHP 7.4 to 7.1 (Property Type) 2020-07-12 08:37:53 +02:00