Skip to content

Commit 262b65a

Browse files
authored
Merge pull request #2646 from WordPress/feature/updates-for-phpcsextra-1.5.0
2 parents 8fe987c + 2be483c commit 262b65a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ When you introduce new `public` sniff properties, or your sniff extends a class
6464
* WordPress-Coding-Standards
6565
* PHP_CodeSniffer 3.13.4 or higher
6666
* PHPCSUtils 1.1.0 or higher
67-
* PHPCSExtra 1.4.0 or higher
67+
* PHPCSExtra 1.5.0 or higher
6868
* PHPUnit 8.x - 9.x
6969

7070
The WordPress Coding Standards use the `PHP_CodeSniffer` native unit test framework for unit testing the sniffs.

WordPress-Extra/ruleset.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,10 @@
202202
<!-- Check for single blank line after namespace declaration. -->
203203
<rule ref="PSR2.Namespaces.NamespaceDeclaration"/>
204204

205+
<!-- Do not allow spacing inside the brackets for attributes. -->
206+
<rule ref="Universal.Attributes.BracketSpacing"/>
207+
208+
<!-- Forbid parentheses for attribute instantiations without parameters. -->
209+
<rule ref="Universal.Attributes.DisallowAttributeParentheses"/>
210+
205211
</ruleset>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ext-xmlreader": "*",
2424
"squizlabs/php_codesniffer": "^3.13.4",
2525
"phpcsstandards/phpcsutils": "^1.1.0",
26-
"phpcsstandards/phpcsextra": "^1.4.0"
26+
"phpcsstandards/phpcsextra": "^1.5.0"
2727
},
2828
"require-dev": {
2929
"phpcompatibility/php-compatibility": "^9.0",

0 commit comments

Comments
 (0)