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 )
2021-04-14 04:35:28 +02:00
Tomas Votruba
1e24618a9e
File reports ( #6130 )
2021-04-14 02:15:10 +00:00
Tomas Votruba
5bde10c181
Various doc parser fixes ( #6125 )
2021-04-13 18:51:41 +00:00
Michal Lulco
22d35689bf
[League event] Dispatch only strings to anonymous class ( #6120 )
...
* [League event] Fix: dispatch only strings to anonymous class
* [League event] Dispatch only strings to anonymous class
* Fixed phpstan
2021-04-13 19:14:34 +02:00
Tomas Votruba
a0656b27b9
Const tweaks ( #6124 )
2021-04-13 16:01:31 +00:00
Tomas Votruba
8b402bfe02
Make use of File object instead of passing around provider of file info, tokens, stmts etc. ( #6110 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-13 00:12:48 +00:00
Tomas Votruba
b0dc20a462
make ComposerFileProcessor run on non-root paths of composer.json ( #6111 )
2021-04-12 20:47:56 +00:00
Tomas Votruba
5dcedbd825
Remove isOnClassMethodCall() ( #6116 )
2021-04-12 20:04:30 +00:00
Abdul Malik Ikhsan
620309c0d7
[CodeQuality] Avoid double negation on UnnecessaryTernaryExpressionRector ( #6115 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-12 22:02:23 +02:00
Abdul Malik Ikhsan
4d4fb3611f
[DowngradePhp70] Add DowngradeStrictTypeDeclarationRector ( #6107 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-12 17:28:54 +02:00
Tomas Votruba
ad7af917e2
Improve assert added and moved nodes ( #6106 )
2021-04-12 13:24:37 +00:00
Tomas Votruba
06f85e4a68
Refactor file processors towards universal collector ( #6085 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-12 10:34:04 +00:00
Abdul Malik Ikhsan
faca7e2763
[DeadCode] Skip RemoveUnusedVariableAssignRector on used in next compact function ( #6103 )
...
Co-authored-by: repat <repat@repat.de>
2021-04-12 11:44:33 +02:00
Tomas Votruba
809d617708
Refactor OptionalParametersAfterRequiredRector to remove dependency from NodeRepository ( #6098 )
2021-04-11 10:27:20 +00:00
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
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
Abdul Malik Ikhsan
ec32714ad9
[DeadCode] Skip RemoveUnusedVariableAssignRector on native variable ( #6081 )
2021-04-10 16:16:24 +02:00
Tomas Votruba
0ef3b600e3
[PHPStanExtensions] Add NoClassReflectionStaticReflectionRule ( #6078 )
2021-04-10 14:17:21 +02: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
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
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
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
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
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
047045636f
comoser: bump package deps with static doctrine/annotation parser ( #6040 )
2021-04-05 14:22:24 +00:00
Tomas Votruba
28ebdf833c
Extract AbstractValuesAwareNode to improve working with values ( #6036 )
2021-04-05 10:40:13 +02: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
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