Skip to content

Commit

Permalink
Disable long array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Apr 12, 2021
1 parent adc7a3a commit e5a379d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

The Wdes coding-standard

## Rules to disable for PHP 5 compat

- `Generic.Arrays.DisallowLongArraySyntax`

## How to add it

- Run `composer require --dev wdes/coding-standard`
Expand Down
2 changes: 2 additions & 0 deletions Wdes/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"/>
</properties>
</rule>

<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Classes.DuplicateClassName"/>
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
Expand Down

0 comments on commit e5a379d

Please sign in to comment.