Repository navigation
Commit 79ff8a6
committed
[DeadCode] Skip RemoveAlwaysTrueIfConditionRector on inline HTML stmts
Unwrapping an always-true if whose body is inline HTML drops the close-tag transition and prints invalid PHP (inline HTML emitted inside PHP mode).1 parent 545452a commit 79ff8a6
2 files changed
Lines changed: 11 additions & 0 deletions
File tree
- rules-tests/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector/Fixture
- rules/DeadCode/Rector/If_
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
| |||
0 commit comments