Commit 75c57a7
VariableAnalysisSniff::checkForGlobalDeclaration(): fix comment tolerance (#153)
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 0500066 commit 75c57a7
File tree
2 files changed
+7
-3
lines changed- VariableAnalysis
- Sniffs/CodeAnalysis
- Tests/CodeAnalysis/fixtures
2 files changed
+7
-3
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
887 | | - | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
888 | 892 | | |
889 | 893 | | |
890 | 894 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments