Commit c8241b9
VariableAnalysisSniff::checkForFunctionPrototype(): fix comment tolerance in closure use by reference (#145)
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 27eaaaa commit c8241b9
File tree
2 files changed
+2
-2
lines changed- VariableAnalysis
- Sniffs/CodeAnalysis
- Tests/CodeAnalysis/fixtures
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
| 510 | + | |
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
0 commit comments