File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 119
119
<!-- No spacing on the inside of arbitrary parentheses. -->
120
120
<rule ref =" Generic.WhiteSpace.ArbitraryParenthesesSpacing" />
121
121
122
+ <!-- No spacing inside heredoc/nowdocs identifiers. -->
123
+ <rule ref =" Generic.WhiteSpace.HereNowdocIdentifierSpacing" />
124
+
122
125
<!-- Align the equal operator in assignment blocks. -->
123
126
<rule ref =" Generic.Formatting.MultipleStatementAlignment" >
124
127
<properties >
225
228
<!-- Efficiency: don't unnecessarily use double quotes. -->
226
229
<rule ref =" Squiz.Strings.DoubleQuoteUsage.NotRequired" />
227
230
231
+ <!-- Efficiency: don't unnecessarily use heredocs. -->
232
+ <rule ref =" Generic.Strings.UnnecessaryHeredoc" />
233
+
228
234
<!-- Error prevention: warns when an inner loop uses the same incrementor as the outer loop. -->
229
235
<rule ref =" Generic.CodeAnalysis.JumbledIncrementer" />
230
236
233
239
<exclude name =" Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition" />
234
240
</rule >
235
241
242
+ <!-- Error prevention: use parentheses when mixing boolean operators. -->
243
+ <rule ref =" Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence" />
244
+
236
245
<!-- Clean up: remove redundant code. -->
237
246
<rule ref =" Squiz.PHP.NonExecutableCode" >
238
247
<!-- Allow for return statement in otherwise empty function. -->
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ PHPCSDev ruleset for sniff repos
52
52
53
53
Once this project is installed, you will see a new ` PHPCSDev ` ruleset in the list of installed standards when you run ` phpcs -i ` .
54
54
55
- ** Important: This ruleset currently requires PHP_CodeSniffer >= ` 3.6.2 + ` .**
55
+ ** Important: This ruleset currently requires PHP_CodeSniffer >= ` 3.13.0 + ` .**
56
56
57
57
> As sniffs developers will mostly work with the latest version of PHP_CodeSniffer, this shouldn't cause any problems.
58
58
>
Original file line number Diff line number Diff line change 22
22
},
23
23
"require" : {
24
24
"php" : " >=5.4" ,
25
- "squizlabs/php_codesniffer" : " ^3.6.2 " ,
25
+ "squizlabs/php_codesniffer" : " ^3.13.0 " ,
26
26
"phpcompatibility/php-compatibility" : " ^9.0.0 || ^10.0.0" ,
27
27
"dealerdirect/phpcodesniffer-composer-installer" : " ^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0"
28
28
},
You can’t perform that action at this time.
0 commit comments