Commit 4aaa77e
committed
Generic/UselessOverridingMethod: improve sniff handling of a parse error
This commit improves how the sniff handles code that is missing the
closing parenthesis in the parent method call. Now, the code will
intentionally bail early in such cases.
Before, the sniff would unintentionally bail when such cases were found
at a later point and would incorrectly consider everything after the
opening parenthesis to be the first parameter of the parent method.
The commit includes a test.1 parent e53c2c6 commit 4aaa77e
File tree
2 files changed
+11
-1
lines changed- src/Standards/Generic
- Sniffs/CodeAnalysis
- Tests/CodeAnalysis
2 files changed
+11
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments