Skip to content

Commit 9f23c2c

Browse files
committed
Check property declarations more thoroughly
- `checkPromoted` will check promoted properties too. - `enableMultipleSpacesBetweenModifiersCheck` checks multiple spaces between modifiers Close #10
1 parent b2f1a75 commit 9f23c2c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": "^7.2 || ^8.0",
14-
"slevomat/coding-standard": "^8.0"
14+
"slevomat/coding-standard": "^8.1"
1515
},
1616
"autoload": {
1717
"psr-4": {"Spaze\\CodingStandard\\": "src"}

src/ruleset.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@
114114
</properties>
115115
</rule>
116116
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/>
117-
<rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration"/>
117+
<rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration">
118+
<properties>
119+
<property name="checkPromoted" value="true"/>
120+
<property name="enableMultipleSpacesBetweenModifiersCheck" value="true"/>
121+
</properties>
122+
</rule>
118123
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing">
119124
<properties>
120125
<property name="spacesCountBeforeColon" value="0"/>

0 commit comments

Comments
 (0)