Tomas Votruba
7d36c3b0b9
Updated Rector to commit a80cf5292d6df5e83b7d17c78630506e361bede9
...
a80cf5292d
revert to working scoper 0.14
2021-05-10 22:23:08 +00:00
Tomas Votruba
363a910cf7
Updated Rector to commit a7db1ad94df4879885b9106773d2f8335cb40e49
...
a7db1ad94d
use scoper 0.15
2021-05-10 22:10:16 +00:00
Tomas Votruba
345a89a7e2
Updated Rector to commit a657258f317da1f6fd42069bf3b09198d3cfd635
...
a657258f31
cleanup CHANGELOG, is part of GitHub releases now (#2 )
2021-05-10 00:23:30 +00:00
Tomas Votruba
d56e7982d0
Updated Rector to commit dedd4b55fe3e03cae9bd5ac822cfdccd8deb3fb6
...
dedd4b55fe
make node_helper.php safe for similar names
2021-05-09 20:15:43 +00:00
TomasVotruba
0800c7cdc3
fix cs
2021-05-06 20:51:25 +02:00
Tomas Votruba
38248d08f4
Return array of nodes directly from refactor() if possible ( #6366 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-06 10:23:37 +02:00
Tomas Votruba
327f5fc126
[DowngradePhp70] Add SplitGroupedUseImportsRector + allow to return list of stmt[] in refactor() ( #6364 )
...
* rename SeparateMultiUseImportsRector to SeparateMultiUseImportsRector
* [PHP 7.0] Add SplitGroupedUseImportsRector
* allow to return multiple nodes to avoid addStmts() and removeNode() combo
* dot not FQN namespace and use improts
2021-05-06 01:44:08 +02:00
TomasVotruba
efb19e74e6
fix cs
2021-05-04 20:40:08 +02:00
TomasVotruba
6e212162c8
[CodeQuality] Add CallUserFuncWithArrowFunctionToInlineRector
2021-05-04 20:39:28 +02:00
Tomas Votruba
c83ac3683e
Decouple specific rules from NonPhpFileProcessor to NonPhpRectorInterface contract ( #6285 )
2021-05-02 11:50:34 +00:00
Tomas Votruba
f925b62d9b
Report add array doc nodes ( #6274 )
2021-05-01 10:59:25 +00:00
TomasVotruba
898fc72cb7
remove commented dependency
2021-04-30 10:40:44 +02:00
Abdul Malik Ikhsan
e6157560c1
[CodeQuality] Add NarrowUnionTypeDocRector ( #6262 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-30 10:28:36 +02:00
Tomas Votruba
f9dc93cb1a
Fix WrapEncapsedVariableInCurlyBracesRector reporting ( #6220 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-23 19:32:59 +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
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
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
Tomas Votruba
79621dbb99
Flip @see to @changelog links ( #6092 )
2021-04-10 18:47:17 +00:00
Abdul Malik Ikhsan
eb3aba0645
[CodeQuality] Fix SimplifyIfNullableReturnRector code sample before after ( #6056 )
2021-04-08 11:03:02 +00: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
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
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
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
Tomas Votruba
4f27f39e70
Remove dynamic type checks #3 ( #5942 )
2021-03-21 23:07:40 +00:00
Tomas Votruba
ae1c6b90f7
Remove dynamic type checks #2 ( #5941 )
2021-03-21 21:31:18 +00:00
Tomas Votruba
a781b3bd12
Remove dynamic type checks ( #5939 )
2021-03-21 19:41:17 +01:00
Tomas Votruba
89a7afb5a4
Merge DeadDocBlock to DeadCode ( #5936 )
2021-03-21 12:57:56 +00:00
Abdul Malik Ikhsan
747104df6b
Refactor is_a ( #5907 )
...
* Change is_a to UnionType()->isSuperTypeOf()->yes in NetteControlFactoryInterfaceAnalyzer
* fix with check ShortenedObjectType
* change is_a in ThrowWithPreviousExceptionRector
2021-03-21 13:12:35 +01:00
Tomas Votruba
c01d9699b5
Remove type-hiding name methods ( #5912 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-19 23:11:36 +00:00
Tomas Votruba
21db1e9e38
[Nette] Decouple to own package ( #5903 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-19 01:33:30 +01:00
TomasVotruba
e61f80bd21
cleanup
2021-03-18 12:21:20 +01:00
Tomas Votruba
d897902ccf
[Downgrade] Keep better phpdoc type ( #5862 )
2021-03-15 18:58:04 +01:00
Fonata
b84f76e4e4
Bugfix for SimplifyForeachToArrayFilterRector ( #5859 )
2021-03-15 17:52:02 +01:00
Tomas Votruba
c1c6c9aaf2
[downgrade] remove extra configs, unite parameters ( #5861 )
2021-03-15 13:19:57 +00:00
Fonata
e0158925cd
Bugfix for AbsolutizeRequireAndIncludePathRector ( #5858 )
2021-03-14 23:17:49 +01:00
Abdul Malik Ikhsan
a65d5de82f
[CodeQuality] Fixes #5844 Skip ChangeArrayPushToArrayAssignRector on not in expression ( #5845 )
2021-03-14 17:15:38 +01:00
Tomas Votruba
157c39aefc
[DX] move src/tests rules from micro-packages to single PSR-4 structure ( #5826 )
2021-03-12 23:20:25 +01:00