20 Commits

Author SHA1 Message Date
Tomas Votruba
ec92bcc95e
[phpstan] enable file lenght rule (#4999)
* enable file lenght rule

* longer file, just to show ci worked

* [ci] add ValidateFileLengthCommand

* [phpstan] drop PathsAreNotTooLongRule

* [Downgrade] Shorten property promotion rector rule

* [Symfony] Shorten AutoWireWithClassNameSuffixForMethodWithRequiredAnnotationRector name

* shorten fixture name

* rename ChangeControlArrayAccessToAnnotatedControlVariableRector to AnnotateMagicalControlArrayAccessRector

* rename ReplaceMagicEventPropertySubscriberWithEventClassSubscriberRector to ReplaceMagicPropertyWithEventClassRector

* rename GetConfigWithDefaultsArgumentToArrayMergeInCompilerExtensionRector to MergeDefaultsInGetConfigCompilerExtensionRector

* rename ChangeCollectionTypeOptionTypeFromStringToClassReferenceRector to ChangeStringCollectionOptionToConstantRector

* decouple ProjectFilesFinder
2020-12-26 14:53:21 +00:00
Abdul Malik Ikhsan
24e17588c1
[Utils] Run validate-fixture-namespace/classname to rules/ directories (#4935) 2020-12-22 18:12:20 +01:00
Leonardo Losoviz
78c619be8c
[Downgrade] Apply trailing commas rule also on func/method/static call (#4878)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-14 12:40:09 +01:00
Abdul Malik Ikhsan
a8bcbe0aa7
[Downgrade PHP 8.0] Add DowngradeTrailingCommasInParamUseRector (#4828)
Co-authored-by: Krystian Marcisz <simivar@gmail.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 14:36:35 +01:00
Abdul Malik Ikhsan
67ba16089a
[Downgrade PHP X.Y] Consistent usage of getPhpVersion() as constant - 1 in tests (#4822) 2020-12-09 12:28:15 +01:00
Abdul Malik Ikhsan
e25370bd21
[Downgrade PHP 8.0] Fixes #4154 Add DowngradeNullsafeToTernaryOperatorRector (#4807) 2020-12-06 11:43:38 +01:00
Tomas Votruba
db63a96397
[PHP 8.0] CI test fixes (#4805)
* [Downgrade PHP 8.0] Fix Union type

* run variable rename

* allow test

* fix regex

* allow run

* remove test dependency on DateTime changing api

* normalize
2020-12-06 10:19:17 +00:00
Tomas Votruba
3b22532794
[Downgrade] [PHP 8.0] Fix static type (#4800) 2020-12-06 01:05:21 +01:00
Tomas Votruba
dc61d2fecf
add docblock on downgrade by default (#4799)
* add docblock on downgrade by default

* update docs

* drop no docblock test
2020-12-05 22:33:27 +00:00
Tomas Votruba
7f1d304c9a
[Downgrade] [PHP 8.0] Add DowngradeMatchToSwitchRector (#4788) 2020-12-05 13:20:56 +00:00
Tomas Votruba
e627304df9
[PHP 8.0] [Downgrade] Add DowngradeNonCapturingCatchesRector (#4787) 2020-12-05 11:50:31 +00:00
Abdul Malik Ikhsan
1e667b454f
[CI] Add PHP 8.0 to Github actions tests (#4779) 2020-12-05 12:10:44 +01:00
Abdul Malik Ikhsan
d3a6a1db28
[Downgrade PHP 8.0] Add DowngradeClassOnObjectToGetClassRector (#4772) 2020-12-04 15:00:52 +01:00
Tomas Votruba
09f17a7b64
[Downgrade] [PHP 8.0] Add DowngradePropertyPromotionToConstructorPropertyAssignRector (#4762)
* [Downgrade] [PHP 8.0] Add DowngradePropertyPromotionToConstructorPropertyAssignRector

* fix parent

* various fixes for PHP 8.0 tests

* [ci-review] Rector Rectify

* Update rules/downgrade-php80/tests/Rector/Class_/DowngradePropertyPromotionToConstructorPropertyAssignRector/DowngradePropertyPromotionToConstructorPropertyAssignRectorTest.php

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-03 13:27:24 +00:00
Abdul Malik Ikhsan
a38debb672
[DX] Fixes #4205 Change phpversion from string to php constant int type (#4679)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-24 16:32:49 +01:00
Tomas Votruba
0513315056
Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node (#4522)
* Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node

* update DecoupleClassMethodToOwnClassRector

* [ci] add rebase jobp

* disable fail fast for unit tests

* misc
2020-10-31 12:59:40 +00:00
Tomas Votruba
4711abebd1
[RemovingStatic] Add SingleStaticServiceToDynamicRector (#4212)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-13 12:36:29 +02:00
Leonardo Losoviz
b54a40aa61
[Downgrade PHP 8.0] mixed and static types (#4162)
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-08 16:10:42 +02:00
Leonardo Losoviz
4197899608
Downgrade union type (#4150)
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-08 15:25:38 +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