TomasVotruba
bd57281297
unprefixed kernel test case
2021-04-21 20:49:54 +02:00
TomasVotruba
d83bef97b6
[prefixed] skip AbstractKernelTestCase
2021-04-21 14:53:22 +02:00
TomasVotruba
df7e3f2f82
fix assumption var
0.10.9
2021-04-21 01:05:56 +02:00
TomasVotruba
9a19a25218
fix not expression
2021-04-21 01:04:14 +02:00
TomasVotruba
4064d01f84
[Renaming] Keep old to new classes same value in collector and RenameClassRector
0.10.8
2021-04-20 21:50:42 +02:00
Tomas Votruba
4dfd6df447
[TypeDeclaration] Skip exception on void ( #6182 )
2021-04-20 19:50:10 +00:00
Tomas Votruba
aee2cb0f07
prefixed - require compatible PHPStan with attribute phpdoc-parser ( #6181 )
0.10.7
2021-04-20 19:00:46 +00:00
Ruud Kamphuis
c87f5d7217
Allow composer/xdebug-handler
v2 ( #6179 )
...
Hopefully this fixes:
```
Problem 1
- friendsofphp/php-cs-fixer is locked to version v3.0.0-rc.1 and an update of this package was not requested.
- rector/rector 0.10.6 requires composer/xdebug-handler ^1.4 -> satisfiable by composer/xdebug-handler[1.4.0, ..., 1.4.6].
- You can only install one version of a package, so only one of these can be installed: composer/xdebug-handler[1.4.0, ..., 1.4.6, 2.0.0].
- friendsofphp/php-cs-fixer v3.0.0-rc.1 requires composer/xdebug-handler ^2.0 -> satisfiable by composer/xdebug-handler[2.0.0].
- Root composer.json requires rector/rector ^0.10.6 -> satisfiable by rector/rector[0.10.6].
```
2021-04-20 19:09:06 +02:00
Abdul Malik Ikhsan
201c73da92
[Scoper] Downgrade rector.php as well for PHP 7.0 void ( #6177 )
...
* [Scoper] Downgrade rector.php as well for PHP 7.0 void
* run on rector.php in rector-build as well
2021-04-20 15:30:07 +00:00
Abdul Malik Ikhsan
49ca43cf17
[Scoped] Allow PHP 7.0 on rector-prefixed build ( #6175 )
2021-04-20 15:43:28 +02:00
Tomas Votruba
d723aca946
[TypeDeclaratio] Skip abstract method in AddVoidReturnTypeWhereNoReturnRector ( #6173 )
2021-04-20 12:41:41 +00:00
Abdul Malik Ikhsan
cd3725aeb5
[DowngradePhp71] Add DowngradeKeysInListRector ( #6170 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-20 14:21:02 +02:00
Sebastian Schreiber
deafaf9ecd
[BUGFIX] Reusage of RenamedClassesDataCollector ( #6172 )
...
- If reusing the RenamedClassesDataCollector in another rector the additional classes get overriden
2021-04-20 13:49:16 +02:00
TomasVotruba
3e3c2dc40d
use changelog annotation
2021-04-19 18:15:52 +02:00
Tomas Votruba
eda5bf1ea3
[DeadCode] Add RemoveUnusedPrivateMethodParameterRector ( #6168 )
...
* [DeadCode] Add RemoveUnusedPrivateMethodParameterRector
This reverts commit c815334bed781c555f08dff82ce7861d758e9e7a.
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-19 15:19:14 +02:00
Joyce Babu
49d4f71214
Fix #6161 ( #6166 )
2021-04-19 11:02:12 +00:00
github-actions[bot]
2b88d9d937
[automated] Re-Generate Nodes/Rectors Documentation ( #6163 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-04-18 15:01:56 +02:00
Abdul Malik Ikhsan
fa6fc49c59
[NodeAnalyzer] Use ClassAnalyzer for anonymous class check ( #6162 )
...
* use ClassAnalyzer in ParsedNodeCollector
* use ClassAnalyzer in BetterNodeFinder
* use Pin ParentClassToTraitsRector
* use in ChangeSingletonToServiceRector
* use in ValueObjectClassAnalyzer
* use in PropertyAddingPostRector
* use in fixture
* use isAnonymous() in ClassAnalyzer
2021-04-18 15:01:22 +02:00
Abdul Malik Ikhsan
496f24f7ce
[Downgade72] Fixes DowngradeStreamIsattyRector code example ( #6164 )
2021-04-18 09:00:44 +00:00
Tomas Votruba
e8a76e8f2b
Do not prefix "parent", "self", "static" and native constants ( #6159 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-17 12:09:58 +00:00
Sebastian Schreiber
95b31d0ca3
[TASK] Add ExtensionConfigResolver for rector/rector-installer ( #6150 )
...
Relates: 6129
2021-04-16 17:29:04 +02:00
Abdul Malik Ikhsan
2b22e73efd
[DeadCode] Skip Variable Variable $$var on RemoveUnusedVariableAssignRector ( #6156 )
2021-04-16 12:14:05 +02:00
Abdul Malik Ikhsan
d4bb85bdc7
[DeadCode] Skip RemoveUnusedVariableAssignRector on next expr Include_ ( #6153 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-16 11:18:07 +02:00
TomasVotruba
ca4e684491
fix cs
2021-04-16 00:43:26 +02:00
Tomas Votruba
e7e1b091d2
Simplify PropertyFetchByMethodAnalyzer ( #6147 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-15 22:30:36 +00:00
SWalther
7bf3eeb61d
[DEAD-CODE] Added failing ShadowedLocalVariable test and implementation ( #5996 )
...
Co-authored-by: clxswalther <swalther@complex.it.de>
Co-authored-by: fbecker-complex <71324952+fbecker-complex@users.noreply.github.com>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-04-15 22:27:56 +00:00
TomasVotruba
aba310f89d
remove unused CallDefaultParamValuesResolver
2021-04-16 00:15:30 +02:00
Tomas Votruba
101041d6ae
[DeadCode] Remove RemoveDefaultArgumentValueRector ( #6148 )
2021-04-16 00:11:58 +02:00
TomasVotruba
c98e180be9
skip static error
2021-04-15 23:41:07 +02:00
TomasVotruba
420a2a8148
typo
2021-04-15 23:40:47 +02:00
TomasVotruba
5f66258231
typo
2021-04-15 23:40:10 +02:00
TomasVotruba
cb22e6386d
fixes
2021-04-15 23:39:54 +02:00
Tomas Votruba
268b32ff7e
[DeadCode] Remove duplicated RemoveUnusedPrivateConstantRector ( #6151 )
...
* [DeadCode] Remove duplicated RemoveUnusedPrivateConstantRector
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-15 23:38:44 +02:00
TomasVotruba
d3295a7d1e
fix incorrect varialbe name
2021-04-15 23:07:07 +02:00
TomasVotruba
8976681b20
remove StaticNodeInstanceOf
2021-04-15 22:45:10 +02:00
Michal Lulco
be2a54e0b9
Collect method call renames for future usage ( #6149 )
2021-04-15 22:44:58 +02:00
Rob Landers
27f3544e8e
Fix nullsafe transpile ( #6101 )
...
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-04-15 19:16:27 +00:00
Tomas Votruba
b8071fb7bc
Make use of inline parser over extreme node construction ( #6145 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-15 17:34:49 +00:00
Abdul Malik Ikhsan
a7234e7ac3
[Php73] Refactor JsonThrowOnErrorRector: change 2nd parameter of json_decode to null and skip on json_last_error, json_last_error_msg ( #6143 )
2021-04-15 17:56:21 +02:00
Abdul Malik Ikhsan
3d88aefe05
[Php73] Skip RegexDashEscapeRector on 3 backslash with next to be escaped ( #6144 )
2021-04-15 17:55:53 +02:00
TomasVotruba
e3e5b5869c
fix return
2021-04-15 10:49:24 +02:00
Tomas Votruba
919849dc66
[Downgrade 72] Add DowngradeStreamIsattyRector ( #6140 )
2021-04-14 22:30:57 +00:00
TomasVotruba
799ff36a71
[CI] skip linting polyfill
2021-04-14 20:39:12 +02:00
Tomas Votruba
1e1c6eebd9
[prefixed] No polyfill on prefixed version ( #6139 )
2021-04-14 20:23:49 +02:00
Abdul Malik Ikhsan
bd2c7aee9f
[DowngradePhp70] Add DowngradeAnonymousClassRector ( #6122 )
...
* [DowngradePhp70] [WIP] Add DowngradeAnonymousClassRector
* typo
* add test
* check is anonymous
* adding new Anonymous class before class
* anonymous class must have New_ parent
* getting args
* without param
* with args fixture
* adding with args
* debug
* with args
* getting args from next attribute
* try move to New_
* skip not anonymous
* try using New_
* [ci-review] Rector Rectify
* it works with New_ node
* with addNodeBeforeNode()
* class exists fixture
* adding increment class if exists
* implemented increment class name for inside class
* handle no namespace
* in function
* in function no namespace
* works
* register to downgrade php70 set
* [ci-review] Rector Rectify
* typo fix
* phpstan
* [ci-review] Rector Rectify
* add handle in closure
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-14 19:55:20 +02:00
Tomas Votruba
219b45c096
[Downgrade 7.3] Add DowngradeArrayKeyFirstLastRector ( #6137 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-14 16:08:07 +00:00
Tomas Votruba
a07e49c43b
bump Symplify packages ( #6134 )
2021-04-14 14:29:15 +00:00
Tomas Votruba
8f256fa281
[DeadCode] Fix RemoveUnusedVariableAssignRector for variable removal ( #6133 )
2021-04-14 13:02:16 +00:00
Tomas Votruba
0aa4e9dcad
Extract ErrorFactory ( #6132 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-14 12:01:03 +00:00
Tomas Votruba
9c147eb846
make use of file rector errors ( #6131 )
0.10.6
2021-04-14 04:35:28 +02:00