Skip to content

Commit 2d4ff36

Browse files
authored
Merge pull request #17 from PHPCSStandards/feature/minor-ruleset-tweak
Ruleset: prevent sniff conflict
2 parents 4ffddc2 + 0c3efa7 commit 2d4ff36

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

PHPCSDev/ruleset.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
<!-- Allow for the first condition of a multi-line control structure to be on the same line
4747
as the control structure keyword. -->
4848
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine"/>
49+
50+
<!-- This standard enforces a blank line before each function, which conflicts with this
51+
PHPCS 3.6.2+ PSR12 sniff when a function is the first content of a class. -->
52+
<exclude name="PSR12.Classes.OpeningBraceSpace.Found"/>
4953
</rule>
5054

5155

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"require" : {
2323
"php" : ">=5.4",
24-
"squizlabs/php_codesniffer" : "^3.5.0",
24+
"squizlabs/php_codesniffer" : "^3.6.2",
2525
"phpcompatibility/php-compatibility" : "^9.0.0 || ^10.0.0",
2626
"dealerdirect/phpcodesniffer-composer-installer" : "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7"
2727
},

0 commit comments

Comments
 (0)