Skip to content

Commit 5d10e28

Browse files
committed
Update phpcs.xml
1 parent ae079c5 commit 5d10e28

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

phpcs.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<ruleset name="PHPStan Extensions Coding Standard">
3-
<config name="php_version" value="70200"/>
3+
<config name="php_version" value="70400"/>
44
<arg name="colors"/>
55
<arg name="extensions" value="php"/>
66
<arg name="encoding" value="utf-8"/>
@@ -110,6 +110,22 @@
110110
</rule>
111111
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
112112
<rule ref="Consistence.NamingConventions.ValidVariableName.NotCamelCaps"/>
113+
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall">
114+
<properties>
115+
<property name="onlySingleLine" value="true"/>
116+
</properties>
117+
</rule>
118+
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall">
119+
<properties>
120+
<property name="enable" value="true"/>
121+
</properties>
122+
</rule>
123+
<rule ref="SlevomatCodingStandard.Functions.RequireArrowFunction">
124+
<properties>
125+
<property name="enable" value="true"/>
126+
</properties>
127+
</rule>
128+
<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"/>
113129
<exclude-pattern>tests/*/data</exclude-pattern>
114130
<exclude-pattern>tests/*/data-attributes</exclude-pattern>
115131
</ruleset>

0 commit comments

Comments
 (0)