Commit 0c3efa7
committed
Ruleset: prevent sniff conflict
PHPCS 3.6.2 introduced a new sniff to the PSR12 standard, which enforces no blank line at the start of a class.
That sniff conflicts with the `Squiz.WhiteSpace.FunctionSpacing` sniff when the `spacingBeforeFirst` property is set to `1`.
As the property setting predates the new sniff, excluding the new sniff will prevent a lot of unnecessary code churn in repos using this standard.
This does, however, require raising the minimum PHPCS version to PHPCS 3.6.2 as otherwise a "sniff not found" error could be displayed.
Ref: https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.6.21 parent 4ffddc2 commit 0c3efa7
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments