39 Commits

Author SHA1 Message Date
Tomas Votruba
607592559d Updated Rector to commit 479df50e71997ffcc081fa4818a859ee4712ac4f
479df50e71 [DeadCode] Skip next ternary & coalesce assign on RemoveDoubleAssignRector (#819)
2021-09-03 16:58:12 +00:00
Tomas Votruba
d5dde5695b Updated Rector to commit f257b10df15331bc6bf3cfa9fc2c44b685a0076b
f257b10df1 [DeadCode][CodeQuality] Handle SimplifyIfElseToTernaryRector + RemoveUnusedAssignVariableRector (#789)
2021-08-30 08:28:08 +00:00
Tomas Votruba
ba205b46bb Updated Rector to commit 68d410ef00d15ca5e373a33fd66d593e0d3de346
68d410ef00 Trigger notification (#741)
2021-08-23 00:20:32 +00:00
Tomas Votruba
674f76ced2 Updated Rector to commit 877cbb2de8150b672a966d7a8907ed63769e1cdd
877cbb2de8 fix(scoper): prefix vendor classes from PHPDoc, close #6614 (#739)
2021-08-22 23:17:31 +00:00
Tomas Votruba
8237134f2e Updated Rector to commit 85e02fd6d01732fa86c6c3f2b34c544be225d947
85e02fd6d0 [DeadCode] Allow not has side effect duplicate assign on RemoveDoubleAssignRector (#679)
2021-08-14 22:37:45 +00:00
Tomas Votruba
9b371536e4 Updated Rector to commit 9dd6d63e140f1c8e1561b113aac12810f412628a
9dd6d63e14 [Defluent] Skip on return and on cast for InArgFluentChainMethodCallToStandaloneMethodCallRector (#680)
2021-08-14 22:35:40 +00:00
Tomas Votruba
c3bc0fc47d Updated Rector to commit d9f47f85729740fe2108d8b0e92e9c97403b6849
d9f47f8572 [DeadCode] Using SideEffectNodeDetector::detectCallExpr() on RemoveOverriddenValuesRector (#554)
2021-07-31 11:34:50 +00:00
Tomas Votruba
9b938c3aa8 Updated Rector to commit a8fd8a33153a8c4e651640266fa3e8c2dfc9b965
a8fd8a3315 [DeadCode] Handle RemoveDeadInstanceOfRector on non typed property (#524)
2021-07-27 14:20:41 +00:00
Tomas Votruba
dfa7a8133f Updated Rector to commit 923bb729839db311cdc77f3105164949a9da61a7
923bb72983 [Naming] Remove MakeBoolPropertyRespectIsHasWasMethodNamingRector, not reliable and rather PHPStan scope (#511)
2021-07-25 16:57:05 +00:00
Tomas Votruba
d77b300a95 Updated Rector to commit 2fc18bd2c0f1a0f5a3183e9115abd597e87f2241
2fc18bd2c0 [Rectify] Manual twice run rector against rules directory (#448)
2021-07-18 02:11:18 +00:00
Tomas Votruba
81db79d69e Updated Rector to commit b2c0a05d56fafa8c2690261e28aa515163f5c7eb
b2c0a05d56 [DeadCode] Skip RemoveAssignOfVoidReturnFunctionRector on used in next statement (#434)
2021-07-15 23:10:57 +00:00
Tomas Votruba
96112cb1f0 Updated Rector to commit 2da49992ccc8e6d4b20e92a5833316d381921391
2da49992cc [Downgrade] [PHP 7.2] Make DowngradeParameterTypeWideningRector always downgrade to phpdoc type (#390)
2021-07-05 22:50:18 +00:00
Tomas Votruba
a79e6f56df Updated Rector to commit ff1ad31d6a1d327542ef2326a84b71554856b9ef
ff1ad31d6a [PHP 7.2] Refactor DowngradeParameterTypeWideningRector to class method (#380)
2021-07-05 07:47:59 +00:00
Tomas Votruba
636eeecaf4 Updated Rector to commit dfd048342b88db3c2adcf20ec701a9fd9a4e2319
dfd048342b [PHP 8.0] Run union types for filled param type too (#331)
2021-06-29 14:24:45 +00:00
Tomas Votruba
56f42aa88e Updated Rector to commit edd78eb3109e879ef3bf92ba0e678feb3f915d61
edd78eb310 fix cs
2021-06-25 15:48:58 +00:00
Tomas Votruba
dba6b87202 Updated Rector to commit 6162f70e75199ba4c56e0e845fb1f8c6ecdd2db1
6162f70e75 [DeadCode] Keep Assign expr on RemoveUnusedVariableAssignRector for impure function (#282)
2021-06-25 09:05:38 +00:00
Tomas Votruba
3fdc777bf5 Updated Rector to commit 246a5863eda22e02a1081b576344eb6e2dda9395
246a5863ed [DeadCode] Prevent RemoveUnusedAssignVariableRector removing variables used in compact() (#238)
2021-06-17 16:01:07 +00:00
Tomas Votruba
0439a83632 Updated Rector to commit 5fd67abde62e9d24cdad9c3f9001b020ec5ad07c
5fd67abde6 [DeadCode] Skip RemoveUnusedAssignVariableRector on used after if else (#213)
2021-06-13 15:06:07 +00:00
Tomas Votruba
cdc3b7adef Updated Rector to commit f451b0b8e1e6761ec7f50809745d44d01caba66d
f451b0b8e1 [PHP 8.0] Bump to promoted properties (#4)
2021-05-10 23:39:21 +00:00
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
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
Abdul Malik Ikhsan
c51c1da262
[DeadCode] Use dependency injection for ConditionSearcher in RemoveUnusedVariableAssignRector (#6226) 2021-04-24 00:59:36 +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
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
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
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
Tomas Votruba
8f256fa281
[DeadCode] Fix RemoveUnusedVariableAssignRector for variable removal (#6133) 2021-04-14 13:02:16 +00:00
Tomas Votruba
ad7af917e2
Improve assert added and moved nodes (#6106) 2021-04-12 13:24:37 +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
Abdul Malik Ikhsan
ec32714ad9
[DeadCode] Skip RemoveUnusedVariableAssignRector on native variable (#6081) 2021-04-10 16:16:24 +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
5fa858b072
[DoctrineAnnotationSyncer] Remove to move to static reflection (#6006) 2021-03-29 13:01:35 +00:00
Abdul Malik Ikhsan
ce1bad3c3a
[DeadCode] Apply RemoveUnusedVariableAssignRector on unused local variable (#6003)
Co-authored-by: slomanto <s.lomanto@complex-it.de>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-29 10:30:42 +02:00
Tomas Votruba
4f27f39e70
Remove dynamic type checks #3 (#5942) 2021-03-21 23:07:40 +00: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