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
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
Abdul Malik Ikhsan
e25370bd21
[Downgrade PHP 8.0] Fixes #4154 Add DowngradeNullsafeToTernaryOperatorRector ( #4807 )
2020-12-06 11:43:38 +01:00
Tomas Votruba
9792b8d0bd
keep description string as standard ( #4811 )
2020-12-06 11:30:46 +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
bfd1953f97
move string downgrade types to object classes ( #4801 )
...
* move string downgrade types to object classes
* fix nullable type unwrap
* remove uneeded open tags from samples
* remove uneeded union type check
2020-12-06 00:27:00 +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
18fdd3313a
[PHP 8.0] get_parent_class() cannot be called on non-existing classes anymore ( #4798 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-05 23:16:54 +01:00
Tomas Votruba
8bfb36d0b2
[Downgrade] [PHP 7.3] Downgrade trailing commas in function calls ( #4796 )
...
Co-authored-by: Tommy Quissens <tommy.quissens@storefront.be>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-05 22:40:10 +01:00
Krystian Marcisz
c85ee2df8d
[DX] Use MethodName const instead of string for __set_state ( #4797 )
2020-12-05 22:39:06 +01:00
Krystian Marcisz
41ab37165c
[PHP 8.0] Add FinalPrivateToPrivateVisibilityRector ( #4794 )
2020-12-05 22:33:30 +01:00