10735 Commits

Author SHA1 Message Date
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
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
ordago
1f7cd52ea0
Typo in the helper text, uses undefined constant (#4853) 2020-12-11 12:06:37 +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
Krystian Marcisz
d8dc81f4bd
[Symfony 5.2][Security] Migrate PUBLIC_ACCESS to the new class (#4842) 2020-12-10 12:10:05 +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
TomasVotruba
7db83da35d [CI] check conflicting methods in tests 2020-12-09 23:35:48 +01: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
Krystian Marcisz
fab46dd552
[Symfony 5.2][Mime] Rename Address::fromString() to Address::create() (#4840) 2020-12-09 21:38:57 +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
Abdul Malik Ikhsan
8dad9a221f
[Downgrade PHP 7.4] Add DowngradeFreadFwriteFalsyToNegationRector (#4825) 2020-12-09 12:33:25 +01:00
Abdul Malik Ikhsan
143164504e
[CodeQuality] Add UnwrapSprintfOneArgumentRector (#4827)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 12:29:01 +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
TomasVotruba
61828cdb67 refer Skip option 2020-12-08 15:40:04 +01:00
Leonardo Losoviz
e0b4d469cd
[Downgrade PHP 7.2] Parameter type widening (#4818) 2020-12-08 13:03:00 +01:00
Leonardo Losoviz
7c991a9898
[Downgrade PHP 7.0] Remove param and return types (#4819)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-08 13:02:26 +01:00
Abdul Malik Ikhsan
a3add7d409
[Downgade PHP 7.1] Add DowngradeNegativeStringOffsetToStrlenRector (#4823)
* [Downgade PHP 7.1] Fixes #4197 Add DowngradeNegativeStringOffsetToStrlenRector

* implemented

* more fixture

* phpstan

* phpstan

* final touch: code sample

* register to downgrade-php71 set
2020-12-08 12:19:58 +01:00
Abdul Malik Ikhsan
beff093125
[Downgrade PHP 7.1] Add SymmetricArrayDestructuringToListRector (#4821)
* [Downgrade PHP 7.1] Fixes #4193 Add SymmetricArrayDestructuringToListRector

* use @requires PHP 7.1

* provide getPhpVersion() in test -a

* in foreach

* phpstan

* register to downgrade-php71 config set
2020-12-08 12:04:03 +01:00
Abdul Malik Ikhsan
7867fe927a
[AUTO_IMPORT_NAMES] Failing fixture for #4650 to skip already in use statement (#4785)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-07 13:20:59 +01:00
Leonardo Losoviz
ec4096134a
Added test cases to validate bug #4397 (#4815) 2020-12-07 12:11:38 +01:00
Tomas Votruba
ca353017e2
[Utils] Add OnlyOneClassMethodRule (#4814)
* [Utils] Add OnlyOneClassMethodRule

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-07 00:48:01 +00:00
Krystian Marcisz
e945b5705f
[Downgrade][PHP 7.3] Add SetCookieOptionsArrayToArgumentsRector (#4806) 2020-12-06 13:14:21 +01:00