Skip to content

Commit

Permalink
Allow shorthand array syntax
Browse files Browse the repository at this point in the history
WPCS wants arrays to be declared using long array syntax in WordPress Core:

WordPress/WordPress-Coding-Standards#1770
https://make.wordpress.org/core/2019/07/12/php-coding-standards-changes/
  • Loading branch information
barryceelen committed Nov 25, 2019
1 parent 00940fa commit 464649a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 10up-Default/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
<!-- Comment punctuation doesn't matter -->
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop"/>
<exclude name="Squiz.Commenting.FunctionComment.ThrowsNoFullStop"/>

<!-- Allow shorthand array syntax -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found"/>
</rule>

<!-- Sets the minimum supported WP version to 4.7, which is over a year old. -->
Expand Down

0 comments on commit 464649a

Please sign in to comment.