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
TomasVotruba
97edb65302
[CI] test symfony package again
2021-04-05 14:23:22 +02:00
TomasVotruba
e548f02840
improve NewTypeResolver with anonymous class
2021-04-05 14:19:44 +02:00
TomasVotruba
3ce033107d
add NewTypeResolver
2021-04-05 14:02:30 +02:00
TomasVotruba
de953e0f37
check for existing keys
2021-04-05 13:14:55 +02:00
TomasVotruba
aa36334e31
enforce php doc node type re-print on change
2021-04-05 12:44:21 +02:00
TomasVotruba
fb1e746157
use strings instead of class-strings
2021-04-05 11:53:03 +02:00
TomasVotruba
e4b6a8d725
null start end, not parent
2021-04-05 11:15:38 +02:00
TomasVotruba
ecb7a3e330
invoke no-reprint on rename
2021-04-05 11:14:23 +02:00
TomasVotruba
5df7837892
remove value with key too
2021-04-05 10:52:32 +02:00
Tomas Votruba
28ebdf833c
Extract AbstractValuesAwareNode to improve working with values ( #6036 )
2021-04-05 10:40:13 +02:00
TomasVotruba
30418c6131
make inlined var single-lined
2021-04-04 23:02:43 +02:00
TomasVotruba
51190b69cb
add removeValue()
2021-04-04 22:51:01 +02:00
TomasVotruba
393031b027
make phpdoc info multiline by default if new node is added
2021-04-04 17:37:28 +02:00
Tomas Votruba
74dc172b74
Misc node printing improvements ( #6034 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-04 15:07:52 +00:00
Abdul Malik Ikhsan
6fe05c462c
[DowngradePhp72] Add DowngradePregUnmatchedAsNullConstantRector ( #6021 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-04 13:40:55 +02:00
Tomas Votruba
b2412ad62a
Refactor doctrine/annotation from dynamic to own static-reflection parser ( #5974 )
...
* remove doctrine/annotations
* Refactor doctrine/annotation parser to static reflection with phpdoc-parser
* remove doctirne-annotation-parser-syncer
* remove annotation stubs
* use nodes
* almost there
* [ci-review] Rector Rectify
* skip temporary
* phpstan: remove fixed messages
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-04 11:01:11 +02:00
Leonardo Losoviz
d2e4c0a5b2
Add failing test fixture for DowngradeParameterTypeWideningRector ( #5995 )
...
* Add failing test fixture for DowngradeParameterTypeWideningRector
# Failing Test for DowngradeParameterTypeWideningRector
Based on https://getrector.org/demo/1b8ee6a0-7d50-4fae-8e15-f19d19591fc5
* Fixed automatic test (created buggy)
* Skip traits
* Renamed test
2021-04-02 19:20:16 +02:00
Abdul Malik Ikhsan
4a34bece7d
[CodeQuality] Handle colon in arg value for create variable or MoveOutMethodCallInsideIfConditionRector ( #6025 )
...
* [CodeQuality] Handle colon in arg value fto create variable or MoveOutMethodCallInsideIfConditionRector
* regex constant name fix
2021-04-02 18:58:16 +07:00
Tomas Votruba
1224a69c8a
remove unused containsArrayType() method ( #6022 )
2021-03-31 11:41:32 +00:00
Abdul Malik Ikhsan
12687f02e8
[CodeQuality] Skip CallableThisArrayToAnonymousFunctionRector on forward_static_call function ( #6017 )
...
Co-authored-by: Zing <zingimmick@outlook.com>
2021-03-31 10:04:42 +02:00
Tomas Votruba
9e34d0b6cf
remove unused map ( #6018 )
2021-03-30 15:06:25 +00:00