10824 Commits

Author SHA1 Message Date
Abdul Malik Ikhsan
4eab2c4520
[CodingStyle] Failing fixture for MakeInheritedMethodVisibilitySameAsParentRector prepend public to protected on static (#4951)
* [CodingStyle] Failing fixture for MakeInheritedMethodVisibilitySameAsParentRector prepend public to protected on static

* fixed

* clean up

* patch ChangeMethodVisibilityRectorTest
2020-12-23 15:28:30 +01:00
TomasVotruba
01e6554600 [github] update issue template 2020-12-22 23:31:53 +01:00
Abdul Malik Ikhsan
48eaa5c950
[CodeQuality] Fixes #4950 Skip IssetOnPropertyObjectToPropertyExistsRector on property as variable (#4953) 2020-12-22 23:21:12 +01:00
Abdul Malik Ikhsan
9e6365cc58
[CodeQuality] Register SwitchNegatedTernaryRector to code-quality config set (#4947)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-22 22:01:19 +01:00
Abdul Malik Ikhsan
24e17588c1
[Utils] Run validate-fixture-namespace/classname to rules/ directories (#4935) 2020-12-22 18:12:20 +01:00
Abdul Malik Ikhsan
003314b958
[CodeQuality] Add SwitchNegatedTernaryRector (#4940)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-22 18:10:01 +01:00
Abdul Malik Ikhsan
8a39d6edbd
[DeadCode] Skip RemoveEmptyClassMethodRector on final method in non-final class (#4943) 2020-12-22 18:09:51 +01:00
Tomas Votruba
a3db386854
drop ecs-after-rector, recommend current setup (#4944) 2020-12-22 17:14:24 +01:00
Tomas Votruba
cfcb237612
Delete test 2020-12-22 17:12:49 +01:00
Tomas Votruba
c97c769781
test 2020-12-22 17:12:11 +01:00
Tomas Votruba
c5d258e0cc
[Downgrade] Drop ChangePhpVersionInPlatformCheckRector as not useful, paltform check false is good enough (#4939)
* [Downgrade] Drop ChangePhpVersionInPlatformCheckRector as not useful, paltform check false is good enough

* fixup! [Downgrade] Drop ChangePhpVersionInPlatformCheckRector as not useful, paltform check false is good enough
2020-12-22 15:48:25 +00:00
Abdul Malik Ikhsan
34e6c6ffdf
[Doc] Using transparent image for space.png (#4934) 2020-12-21 12:15:19 +01:00
Abdul Malik Ikhsan
8bccfd9bcf
[BetterStandardPrinter] Remove unneded cleanUpDuplicateContent() (#4933) 2020-12-21 11:57:39 +01:00
TomasVotruba
06afa2bc94 remove commented code 2020-12-21 10:42:03 +01:00
Tomas Votruba
a759f1ffbc
Static fixes 3 (#4930)
* cleanpu baseline

* static fixes

* staitc fixes

* [Naming] Remove dead classes UnderscoreCamelCaseParamRenamer and MatchTypeParamRenamer

* static fixes

* value object fixes

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-21 02:12:42 +00:00
Tomas Votruba
d1e48f462a
Static fixes (#4929)
* static fixes

* fixup! static fixes

* fixup! fixup! static fixes

* fixup! fixup! fixup! static fixes
2020-12-20 21:27:30 +00:00
Tomas Votruba
37b3cecda3
Upgrade to php-parser 4.10.4 and PHPStan 0.12.63 (#4926)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-20 22:05:48 +01:00
Tomas Votruba
2c8a76ef12
[Naming] add failing test case for type property collection name (#4863)
* add failing test case for type property collection name

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-20 15:10:06 +00:00
Charlie
c044b8ae97
Keep colon when it's used in Doctrine tag's original content. (#4924)
Co-authored-by: Charlie <charlie.vieillard@pixelindustries.com>
2020-12-20 13:58:04 +01:00
Abdul Malik Ikhsan
7f674d7c8b
Using $this->mirrorComments() from AbstractRector to keep comment (#4923)
* Using $this->mirrorComments() from AbstractRector to keep comment

* fix

* fix

* clean up

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-12-20 13:56:43 +01:00
Tomas Votruba
574c7cd174
[static] Narrow param types, remove duplicated methods (#4921)
* narrow types and other static fixes

* duplicates static fixes

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-20 13:50:55 +01:00
TomasVotruba
32eba83751 recomment 2020-12-20 00:43:59 +01:00
TomasVotruba
b7c6e2b7c0 apply cs 2020-12-19 23:37:11 +01:00
Abdul Malik Ikhsan
720b2c34eb
[EarlyReturn] Enable ReturnBinaryAndToEarlyReturnRector in early-return config set (#4915)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-19 16:24:53 +01:00
Abdul Malik Ikhsan
11d36a4bf9
[EarlyReturn] Add ReturnBinaryAndToEarlyReturnRector (#4906)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-19 09:56:24 +01:00
Abdul Malik Ikhsan
511a9ac777
[Symfony Code Quality] Fixes EventListenerToEventSubscriberRector do not replace method call properly (#4908)
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Co-authored-by: Flohw <git@f-pa.site>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Co-authored-by: Flohw <flohw@users.noreply.github.com>
2020-12-19 09:51:44 +01:00
Leonardo Losoviz
20622c2541
Added tests for RenameVariableToMatchNewTypeRector (#4898)
* Added tests to fix issue

* Removed tests placed with wrong rule

* Added test with right rule

* Simplified className

* fixed

* [ci-review] Rector Rectify

Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-18 23:18:17 +01:00
Abdul Malik Ikhsan
6c813e5e4d
[Solid] Skip MoveVariableDeclarationNearReferenceRector when next statement has static call (#4914)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-18 18:18:40 +01:00
HDVinnie
4436ba62eb
fix: checkstyle.md (#4912)
- simple typo
2020-12-17 22:18:14 +07:00
Tomas Votruba
06f1b3a5b5
[UPGRADE] Add Rector 0.9 upgrade docs (#4907) 2020-12-17 16:08:06 +01:00
Abdul Malik Ikhsan
c196e46328
[PHP 8.0] Fixes #4852 Fixes crash on get_class() without parameter on ClassOnObjectRector (#4910) 2020-12-17 14:47:54 +01:00
Grzegorz Korba
495e2b59ca
Bundle bin/rector.php in dist archive (#4909) 2020-12-17 11:36:05 +01:00
Abdul Malik Ikhsan
3489c8a9ff
[Utils] Run validate-fixture-namespace/classname to packages (#4902) 2020-12-15 20:40:13 +01:00
Abdul Malik Ikhsan
bf4cd08947
[Utils] Run validate-fixture-namespace and validate-fixture-classname for /tests/ directory (#4901)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-15 19:51:03 +01:00
Abdul Malik Ikhsan
e788d4db4c
[PHP72] Fixes WhileEachToForeachRector to keep comment on update to Foreach (#4900) 2020-12-15 17:37:15 +01:00
Dan Untenzu
237524d782
[BUGFIX] Docs: Resolve link to doc block tutorial (#4895)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-12-15 13:11:31 +01:00
Leonardo Losoviz
51f5a42194
[Downgrade] Add ".0" after downgrading the numeric literal separator on floats (#4889)
* Updated test (to fail)

* If the float has no ".", add ".0" at the end
2020-12-15 09:44:17 +01:00
Krystian Marcisz
89e75fe179
[Symfony 5.2] Rename setProviderKey()/getProviderKey() to setFirewallName()/getFirewallName() (#4888)
* [Symfony 5.2] Rename setProviderKey()/getProviderKey() to setFirewallName()/getFirewallName()

* [Symfony 5.2] Rename setProviderKey()/getProviderKey() to setFirewallName()/getFirewallName()
2020-12-15 08:40:15 +01:00
Krystian Marcisz
6f1eb0b6ff
[Symfony 5.2] Add PropertyPathMapperToDataMapperRector (#4887) 2020-12-14 21:03:46 +01:00
TomasVotruba
efb80cf98c typo 2020-12-14 18:43:53 +01:00
Tomas Votruba
5a1c7f2699
[phpstan] remove non-existing packages/file-system-rector/src/Rector/AbstractFileSystemRector.php (#4886) 2020-12-14 18:37:57 +01:00
Tomas Votruba
7e71b94886
dupli (#4885) 2020-12-14 18:24:00 +01:00
Abdul Malik Ikhsan
c2b7297b7a
[DX] Add ValidateFixtureNamespaceCommand and ValidateFixtureClassnameCommand (#4883)
Co-authored-by: rector-bot <tomas@getrector.org>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-12-14 17:39:16 +01:00
Leonardo Losoviz
b8b86de61d
[Downgrade] Composer's platform check must use the PHP version below (#4879)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-14 17:29:23 +01:00
Tomas Votruba
a8a0030bf9
Move package to 1st position in recipe (#4882)
* add alias

* [recipe] enable set by default, most contributors are core

* move package to 1st place, close to rule name where we think about package

* [ci-review] Rector Rectify

* fix recipe test

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-14 16:24:33 +00:00
Leonardo Losoviz
c5a15d559a
[Downgrade] Fix parameter type widening issue, when method lives on the ancestor's interface (#4877)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-14 12:41:36 +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
Krystian Marcisz
6aecbd0261
[Symfony 5.2] Add ReflectionExtractorEnableMagicCallExtractorRector (#4876)
* [Symfony5] Add ReflectionExtractorEnableMagicCallExtractorRector

* [Symfony5] Add to Symfony 5.2 set

* [Symfony5] CS Fix
2020-12-14 12:35:15 +01:00
Krystian Marcisz
a08d26bee5
[Symfony 5.2] Add PropertyAccessorCreationBooleanToFlagsRector (#4874) 2020-12-14 00:45:55 +01:00
Tomas Votruba
f3decc4a9c
[CI] drop ignore platform reqs (#4870) 2020-12-13 00:18:57 +00:00