Commit 5e6947c
committed
Bail out on #[Override]
- `SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification`:
do not report missing native type hint when method has `#[Override]` attribute.
- `SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint`:
do not report missing native type hint when method has `#[Override]` attribute.
This time I took a more holistic approach and search for occurrences of
`DocCommentHelper::hasInheritdocAnnotation`, and checked if there was a
similar check for the override attribute.1 parent 4ef8e3e commit 5e6947c
File tree
4 files changed
+11
-5
lines changed- SlevomatCodingStandard/Sniffs/TypeHints
- tests/Sniffs/TypeHints/data
4 files changed
+11
-5
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
147 | 151 | | |
148 | 152 | | |
149 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
296 | | - | |
| 297 | + | |
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 203 | | |
207 | 204 | | |
208 | 205 | | |
| |||
0 commit comments