Commit 97f2d1f
authored
[TASK] Specify the PHPStan errors to ignore for deprecation notices (#1560)
Follow-up from #1559.
`phpstan-ignore-next-line` does not have parameters - it ignores all warnings
on the next line regardless
(see phpstan/phpstan#11340 (comment)).
`phpstan-ignore` applies to the next line, and has parameters to specify which
warnings to ignore.
Because the `if` statement generates two `booleanNot.alwaysTrue` warnings,
this needs to be specified twice in the argument list.1 parent 44130cf commit 97f2d1f
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments