1372 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
eddb2b29c9
[EarlyReturn] Decouple new rules (#4868) 2020-12-12 16:59:09 +00:00
Tomas Votruba
f197e25793
droping events (#4865)
* drop unused ReportCollector and releted avain chains

* update fixed comma trail downgrade in php-parser

* add post runner interface

* [CodingStyle] Enabe post-inc-dec

* [ci-review] Rector Rectify

* test ci

* bump phpunit

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-12 14:58:47 +00:00
Abdul Malik Ikhsan
184cf7ca85
[CodingStyle] Add PostIncDecToPreIncDecRector (#4861)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-12 15:12:13 +01:00
Tomas Votruba
56dedb1786
static fixes (#4864)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-12 14:53:10 +01:00
Tomas Votruba
db5e02e724
static fixes (#4860)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-12 13:08:34 +01:00
Abdul Malik Ikhsan
d7337f7959
Typo fix: missing ; in code example (#4862) 2020-12-12 12:10:48 +01:00
Leonardo Losoviz
46a8cf2390
[Downgrade PHP 7.4] Fix bug on ContravariantArgumentType: reflection on __construct may not return type (#4851) 2020-12-12 00:33:10 +01:00
Leonardo Losoviz
a3d38b8e98
[Downgrade PHP 7.4] Fixed bug for CovariantReturnType downgrading (#4850) 2020-12-12 00:32:52 +01:00
Krystian Marcisz
35ceeff106
[Symfony] Split Symfony rules to dedicated namespaces (#4858) 2020-12-11 23:51:20 +01:00
Tomas Votruba
d27997197b
Static updates (#4857) 2020-12-11 18:25:42 +01:00
Leonardo Losoviz
7794d819c4
Fixed typo: Alais => Alias (#4856) 2020-12-11 14:55:24 +01:00
Krystian Marcisz
668753b638
[Symfony 5.2] Add BinaryFileResponseCreateToNewInstanceRector (#4846) 2020-12-11 11:07:33 +01:00
Leonardo Losoviz
e6ca54bdce
Fixed inconsistent naming: PHP_7_3 to PHP_73 (#4849) 2020-12-11 10:04:50 +01:00
Leonardo Losoviz
ff2ea86176
Renamed NoParticularNodeRule to ForbiddenNodeRule (#4848)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-11 09:58:51 +01:00
Grzegorz Korba
21e5a6696c
Do not enforce interface-typing for classes with wider public API than defined by interface (#4845) 2020-12-10 18:55:34 +01:00
Tomas Votruba
2ea430b0ec
[PHP 8.0] Fix used variable rename in propperty promotion (#4841)
* [PHP 8.0] Add test case for used variable

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 23:40:38 +00:00
Tomas Votruba
d131d804d9
Bump min PHP version to 7.3 (#4838)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 23:25:53 +01:00
TomasVotruba
5ac0a2a511 skip void on param fixture update 2020-12-09 19:51:47 +01:00
Tomas Votruba
e157da77f9
[PHP 8.0] Skip void type in union (#4835) 2020-12-09 19:38:45 +01:00
Tomas Votruba
eac130e705
[PHP 8.0] Make Attribute silent keys explicit, with named args (#4834)
* decouple TagName class

* remove attribute aware from data provider tag value node, as unique class

* add RequiredTagValueNode

* make Attributes explicit, to avoid confusiong
2020-12-09 17:16:36 +00:00
Tomas Votruba
5e609f50fb
fix no use (#4832) 2020-12-09 17:09:26 +01:00
Tomas Votruba
c68fd43b65
Bump to Symplify 9 (#4830)
* composer: bump to Symplify 9

* fix cs

* update InputDetector to StaticInputDetector

* add missign symplify/ packages

* remove already included phpstan configs

* [CI] test lowest deps on PHP 7.3, as minimum for Symplify 9

* bump doctrine/inflector and sebastian/diff

* [CI] symplify PHP 7.3 testing
2020-12-09 15:41:23 +00: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