Skip to content

Commit d78de04

Browse files
authored
Merge pull request #34 from PcComponentes/feature/change-of-definition
feat: Remove deprecated syntax and sniffs reported
2 parents 07f7496 + 0667c93 commit d78de04

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/ruleset.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint" />
4343
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint" />
4444
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint" />
45+
<exclude name="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat" />
4546
<exclude name="PSR2.Namespaces.UseDeclaration.MultipleDeclarations" />
4647
</rule>
4748
<rule ref="Generic.Files.LineLength">
@@ -52,6 +53,7 @@
5253
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
5354
<properties>
5455
<property name="linesCountBeforeDeclare" value="0"/>
56+
<property name="spacesCountAroundEqualsSign" value="0"/>
5557
</properties>
5658
</rule>
5759
<rule ref="SlevomatCodingStandard.Files.LineLength">
@@ -61,15 +63,14 @@
6163
</rule>
6264
<rule ref="Generic.PHP.ForbiddenFunctions">
6365
<properties>
64-
<property name="forbiddenFunctions" type="array" value="array=>null,var_dump=>null,dump=>null" />
66+
<property name="forbiddenFunctions" type="array">
67+
<element key="array" value="null" />
68+
<element key="var_dump" value="null" />
69+
<element key="dump" value="null" />
70+
</property>
6571
</properties>
6672
</rule>
6773
<rule ref="SlevomatCodingStandard.ControlStructures.RequireYodaComparison" />
68-
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
69-
<properties>
70-
<property name="spacesCountAroundEqualsSign" value="0"/>
71-
</properties>
72-
</rule>
7374
<rule ref="SlevomatCodingStandard.Classes.TraitUseSpacing">
7475
<properties>
7576
<property name="linesCountBeforeFirstUse" value="0"/>

0 commit comments

Comments
 (0)