Commit dfdac09
VariableAnalysisSniff::checkForVariableVariable(): fix comment tolerance (#151)
PHP ignores comments in unexpected/unconventional places and so should the sniff.
Includes adjusting an existing unit test.
Without the fix, the adjusted unit test would cause test failures.1 parent 0ada835 commit dfdac09
File tree
2 files changed
+10
-4
lines changed- VariableAnalysis
- Sniffs/CodeAnalysis
- Tests/CodeAnalysis/fixtures
2 files changed
+10
-4
lines changedLines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
790 | | - | |
| 790 | + | |
| 791 | + | |
791 | 792 | | |
792 | 793 | | |
793 | | - | |
| 794 | + | |
794 | 795 | | |
795 | 796 | | |
796 | | - | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
797 | 803 | | |
798 | 804 | | |
799 | 805 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments