Skip to content

Commit 0e5984c

Browse files
committed
Require constructor property promotion
PHP 8.0+ feature so code targeting older PHPs would need to exclude it, just like trailing commas in calls for example
1 parent 6efbc96 commit 0e5984c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<property name="maxLinesCountBeforeWithoutComment" value="1"/>
6868
</properties>
6969
</rule>
70+
<rule ref="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion"/>
7071
<rule ref="SlevomatCodingStandard.Classes.TraitUseDeclaration"/>
7172
<rule ref="SlevomatCodingStandard.Classes.TraitUseSpacing">
7273
<properties>

0 commit comments

Comments
 (0)