Skip to content

Commit 2bafec2

Browse files
committed
Slevomat Coding Standard 4.x
1 parent 5445e44 commit 2bafec2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Consistence/ruleset.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility"/>
156156
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements"/>
157157
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"/>
158-
<rule ref="SlevomatCodingStandard.ControlStructures.YodaComparison"/>
158+
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison"/>
159159
<rule ref="SlevomatCodingStandard.Exceptions.DeadCatch"/>
160160
<rule ref="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly"/>
161161
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"require": {
1414
"php": "~7.0",
1515
"squizlabs/php_codesniffer": "~3.0.1",
16-
"slevomat/coding-standard": "~3.0"
16+
"slevomat/coding-standard": "~4.0"
1717
},
1818
"require-dev": {
1919
"jakub-onderka/php-console-highlighter": "0.3.2",

0 commit comments

Comments
 (0)