14 Commits

Author SHA1 Message Date
Raffael Comi
073a2a3eee
Infer var type annotation only if none exists (#4443) 2020-10-19 00:05:36 +02:00
Raffael Comi
055040f8e8
Downgrade PHP7.4 array_merge without arguments (#4377) (#4440) 2020-10-18 16:37:02 +02:00
Tomas Votruba
fd9bd00713
[DoctrineCodeQuality] Fix oveCurrentDateTimeDefaultInEntityToConstructorRector for default value (#4436)
* [DoctrineCodeQuality] Fix oveCurrentDateTimeDefaultInEntityToConstructorRector for default value

* re-use local property method

* improve new_ nesting

* [rector] improve new_ nesting

* static fixes

* bump deps

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-18 08:45:56 +00:00
Leonardo Losoviz
139823a3a2
[Downgrade PHP 7.4] Support iterable pseudo-type when downgrading the array spread (#4404)
* Support iterable pseudo-type

* Renamed function

* Fixed cs
2020-10-16 00:25:34 +02:00
Leonardo Losoviz
0b54ff3d97
[Downgrade PHP 7.4] Array spread - don't use ternary for arrays, or PHPStan complains (#4380) 2020-10-10 09:18:57 +02:00
Leonardo Losoviz
c7910a8fa7
Downgrade php74 array spread (#4375) 2020-10-09 09:54:28 +02:00
Leonardo Losoviz
84c03bcbdc
[Downgrade PHP 7.4] Numeric Literal Separator Rector (#4361) 2020-10-06 11:55:43 +02:00
Leonardo Losoviz
bac865b437
Downgrade PHP7.4 strip_tags array arg (#4357)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-06 08:56:41 +02:00
Tomas Votruba
8ae3868a57
[Restoration] Add RestoreFullyQualifiedNameRector (#4336)
* [Restoration] Add RestoreFullyQualifiedNameRector

* update docs

* use service aware test case for PHPStan rules

* improve FullyQualifiedNameMatcher

* cs fixes

* add return doc resolution

* composer: bump to symfony 4.4/5.1
2020-10-01 19:45:29 +00:00
Igor
f2ecdeb0b1
[Naming] Foreach over "data", renames to "datum" (#4221)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-15 10:23:13 +02:00
Leonardo Losoviz
abb9a3ef90
Downgrade PHP7.1 features: nullable types and void return type (#4192) 2020-09-12 11:50:13 +02:00
dobryy
a6444fb801
[DX] Configurable rule must have configure code sample, and vice versa (#4174)
* [DX] Configurable rule must have configure code sample, and vice versa

* Add ConfiguredCodeSample

* heredocs

* code sample

* fix class

* drop AbstractConfigurableMatchTypeRector

Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-11 11:21:48 +02:00
Leonardo Losoviz
5dbd454102
Remove DowngradeRectorInterface (#4179)
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-09 11:03:05 +02: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