Skip to content

Commit aa39d6a

Browse files
josefbenjacMilan Felix Šulc
authored andcommitted
Slevomat Coding Standard: 4.0 [#9]
1 parent 990eaa5 commit aa39d6a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"require": {
1515
"php": ">=7.1",
16-
"slevomat/coding-standard": "^3.0.2",
16+
"slevomat/coding-standard": "^4.0.0",
1717
"squizlabs/php_codesniffer": "^3.0.1"
1818
}
1919
}

ruleset.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
</rule>
171171

172172
<!-- ########################################################################################################### -->
173-
<!-- Slevomat Coding Standard 2.0 -->
173+
<!-- Slevomat Coding Standard 4.0.0 -->
174174
<!-- ########################################################################################################### -->
175175
<rule ref="./../../slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml">
176176
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/>
@@ -179,6 +179,7 @@
179179
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/>
180180
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces"/>
181181
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessDocComment"/>
182+
<exclude name="SlevomatCodingStandard.ControlStructures.RequireYodaComparison"/>
182183
</rule>
183184
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
184185
<properties>

0 commit comments

Comments
 (0)