Skip to content

Commit 8084e5f

Browse files
✨ Add rule to force use of short array syntax
1 parent acbf473 commit 8084e5f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

SymfonyCustom/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,5 @@
8080
</properties>
8181
</rule>
8282
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
83+
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
8384
</ruleset>

docs/standards.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ we do not respect this rule:
9898
<rule ref="Squiz.PHP.ForbiddenFunctions"/>
9999
```
100100

101+
- Use short array syntax
102+
103+
```
104+
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
105+
```
106+
101107
### Custom
102108
- Some others checks are made about array (`=>` alignments and indentation)
103109

0 commit comments

Comments
 (0)