Tomas Votruba
b121d8e10a
Remove mapToDocString() and use describe() instead ( #6095 )
2021-04-10 23:28:08 +00:00
TomasVotruba
c4870c4a8d
cleanup
2021-04-10 22:21:54 +02:00
Tomas Votruba
8b62025ce0
Cleanup composer update run ( #6094 )
...
* cleanup compoesr update run
* rename provideConfigFile() to provideConfigFilePath()
* merge AbstractComposerRectorTestCase to AbstractRectorTestCase
* rename ComposerProcessorNonPhp to ComposerFileProcessor
2021-04-10 22:12:50 +02:00
Tomas Votruba
417e819e40
cleanup ( #6093 )
2021-04-10 19:29:43 +00:00
Tomas Votruba
79621dbb99
Flip @see to @changelog links ( #6092 )
2021-04-10 18:47:17 +00:00
Tomas Votruba
26a5b86892
[Privatization] Remove MakeUnusedClassesWithChildrenAbstractRector as risky and full context is needed ( #6091 )
2021-04-10 20:18:49 +02:00
TomasVotruba
7aecf8138d
remove unused class
2021-04-10 19:58:11 +02:00
Abdul Malik Ikhsan
723bd2b1b6
[CodeQualityStrict] Skip MoveVariableDeclarationNearReferenceRector on pass impure function ( #6090 )
2021-04-10 19:45:46 +02:00
Tomas Votruba
f82a8dc995
Refactor AnnotationExtractor fomr FileDiff value object to standalone RectorsChangelogResolver service ( #6088 )
2021-04-10 16:22:25 +00:00
Abdul Malik Ikhsan
4587a7adcb
[Privatization] Skip ChangeReadOnlyPropertyWithDefaultValueToConstantRector on StaticCall by Ref Param ( #6084 )
...
Co-authored-by: Zing <zingimmick@outlook.com>
2021-04-10 18:09:57 +02:00
TomasVotruba
00a3e43117
fix string match return type
2021-04-10 17:29:36 +02:00
Tomas Votruba
9517556487
remove findClassMethodByTypeAndMethod() ( #6086 )
...
* remove findClassMethodByTypeAndMethod()
* [ci-review] Rector Rectify
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-10 17:23:00 +02:00
Sebastian Schreiber
2b671a27d5
[FEATURE] Output changelog url in OutputFormatterInterface ( #6073 )
2021-04-10 16:54:24 +02:00
Abdul Malik Ikhsan
ec32714ad9
[DeadCode] Skip RemoveUnusedVariableAssignRector on native variable ( #6081 )
2021-04-10 16:16:24 +02:00
Tomas Votruba
8472eadff4
Misc file processor improvements ( #6080 )
2021-04-10 14:01:36 +00:00
Tomas Votruba
0ef3b600e3
[PHPStanExtensions] Add NoClassReflectionStaticReflectionRule ( #6078 )
2021-04-10 14:17:21 +02:00
Tomas Votruba
9e6e3f7a92
Simplify set provider ( #6077 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-10 11:38:25 +00:00
Abdul Malik Ikhsan
f4c7b07f3f
[LeagueEvent] Remove unnecessary check instanceof StringType on DispatchStringToObjectRector ( #6076 )
2021-04-10 11:05:49 +00:00
Abdul Malik Ikhsan
ab67f084c5
[DowngradePhp72] Skip DowngradePregUnmatchedAsNullConstantRector on different flags in BitwiseOr ( #6075 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-10 12:56:55 +02:00
TomasVotruba
66a39a1ac9
fix cs
2021-04-09 23:23:43 +02:00
TomasVotruba
d55b6ea8e0
make use of isObjectTypes()
2021-04-09 23:23:15 +02:00
Michal Lulco
4b71eaa53d
League event: change dispatch string events to objects ( #6029 )
2021-04-09 23:20:49 +02:00
Abdul Malik Ikhsan
4d78e28f25
[NodeTypeResolver] Fixes #6065 Use existing NodeTypeResolver object on Auto Imports short name ( #6069 )
2021-04-09 23:00:57 +02:00
Tomas Votruba
9be459dd76
Workaround invalid tag value node on add return array ( #6068 )
...
* Skip invalid return tag
* skip @var and @param invalid tags too
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-09 19:36:06 +02:00
Sebastian Schreiber
4296d35903
[FEATURE] Use generic processor interface for non php files ( #6060 )
2021-04-09 18:44:00 +02:00
TomasVotruba
3e4e9387c6
bump package rector deps
0.10.4
2021-04-09 18:27:12 +02:00
TomasVotruba
fae4a7512e
composer: bump retcor phpunit
2021-04-09 17:15:27 +02:00
Tomas Votruba
e85dbf0422
[PHP 7.0] Cover named ctor with for ( #6064 )
2021-04-09 15:07:21 +00:00
Tomas Votruba
8e8446a909
remove METHOD_NAME attribute to promote single source of node ( #6063 )
2021-04-09 12:45:07 +02:00
Tomas Votruba
6ced3bd32a
Add upgrade path to Rector 0.10 - upgrade set included ( #6061 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-09 01:12:42 +00:00
TomasVotruba
021ffc7ada
fix cs
2021-04-08 17:50:23 +02:00
TomasVotruba
272df8a1e3
fix rector-generator config file path installed by 3rd party
2021-04-08 17:50:11 +02:00
Tomas Votruba
d9b70b6354
fix ConfigFileAwareInterface in src code ( #6058 )
2021-04-08 15:54:31 +02:00
Tomas Votruba
cb60705d78
Restore parent relations on new nodes ( #6057 )
2021-04-08 12:44:26 +00:00
Abdul Malik Ikhsan
eb3aba0645
[CodeQuality] Fix SimplifyIfNullableReturnRector code sample before after ( #6056 )
2021-04-08 11:03:02 +00:00
TomasVotruba
f5b8b4dfaa
skip missing test case on scoping
2021-04-08 12:35:14 +02:00
Tomas Votruba
b75db9403d
[Composer] Open AbstractComposerRectorTestCase ( #6055 )
2021-04-08 12:30:43 +02:00
Tomas Votruba
8624cec9e5
use Symplify stable ( #6054 )
2021-04-08 12:23:34 +02:00
Abdul Malik Ikhsan
a60748dc41
[DeadCode] Skip RemoveUnusedVariableAssignRector on used in Method call and PropertyFetch name ( #6053 )
...
* Add failing test fixture for RemoveUnusedVariableAssignRector
* Closes #6051
* cs
Co-authored-by: zingimmick <zingimmick@outlook.com>
2021-04-07 18:56:29 +02:00
Tomas Votruba
32a7122444
remove unneeded TagValueNodeConfiguration ( #6050 )
2021-04-07 14:09:15 +00:00
TomasVotruba
126da19c86
deprecated tag value node configuration
2021-04-07 14:04:07 +02:00
Abdul Malik Ikhsan
4aa5d2b441
[Privatization] Skip ChangeReadOnlyPropertyWithDefaultValueToConstantRector on by ref param method call ( #6049 )
...
* Add failing test fixture for ChangeReadOnlyPropertyWithDefaultValueToConstantRector
# Failing Test for ChangeReadOnlyPropertyWithDefaultValueToConstantRector
Based on https://getrector.org/demo/c2fe122c-152a-4fec-90c2-9f6be9929614
* Closes #6048 Fixes #6044
* cs
* phpstan
Co-authored-by: Zing <zingimmick@outlook.com>
2021-04-07 12:10:58 +02:00
Abdul Malik Ikhsan
0a9c6a8400
[CodeQuality] Register SimplifyIfNullableReturnRector to code-quality config set ( #6047 )
...
* [CodeQuality] Register SimplifyIfNullableReturnRector to code-quality config set
* handle next expression
* handle next expression
* handle next expression
* naming
* phpstan
* fixture fix
* fix
* check next early
* mirror comment not @var
* phpstan
* phpstan
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* phpstan
* more fixture for mirror comment without @var
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-07 00:00:14 +02:00
TomasVotruba
f902a94ea8
fix cs
2021-04-06 21:55:23 +02:00
Tomas Votruba
b03536c0f5
Improve token iterator usage ( #6046 )
...
* use token iterator
* add spaceless tag
* [ci-review] Rector Rectify
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-06 20:36:50 +02:00
Abdul Malik Ikhsan
b7af3d58f1
[CodeQuality] Add SimplifyIfNullableReturnRector ( #6043 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-06 20:25:16 +02:00
Tomas Votruba
31566dc869
Traverse phpdoc with use of PhpDocNodeVisitor ( #6045 )
...
* make use of new simple-php-doc-parser
* add ParamPhpDocNodeVisitor
* remove uneeded contracts
* skip bool instanceof
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-06 19:33:09 +02:00
Tomas Votruba
006785559e
Add annotation re-print with colon and equal ( #6042 )
2021-04-05 17:32:51 +00:00
Tomas Votruba
047045636f
comoser: bump package deps with static doctrine/annotation parser ( #6040 )
2021-04-05 14:22:24 +00:00
Tomas Votruba
0eec24e342
add reprint test ( #6038 )
...
* add failing test case for extended first node
* fix reprint of first node start
* [ci-review] Rector Rectify
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-05 15:25:08 +02:00