Skip to content

Commit 7309dcb

Browse files
committed
Specify union type hint format
- no spaces between - require `null` - require `null` to be last
1 parent b91ac92 commit 7309dcb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

phpcs.xml.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77

88
<rule ref="Cdn77"/>
99

10+
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
11+
<properties>
12+
<property name="withSpaces" value="no" />
13+
<property name="shortNullable" value="no" />
14+
<property name="nullPosition" value="last" />
15+
</properties>
16+
</rule>
17+
1018
<file>src/</file>
1119
<file>tests/</file>
1220

0 commit comments

Comments
 (0)