Commit e792155
fix: skip variable assignments in get_defined_vars (#7106)
* fix: skip variable assignments in get_defined_vars
* Update rules/DeadCode/Rector/Assign/RemoveUnusedVariableAssignRector.php
---------
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>1 parent e283a30 commit e792155
2 files changed
Lines changed: 15 additions & 1 deletion
File tree
- rules-tests/DeadCode/Rector/Assign/RemoveUnusedVariableAssignRector/Fixture
- rules/DeadCode/Rector/Assign
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
0 commit comments