Skip to content

Commit e70a7d9

Browse files
committed
add SlevomatCodingStandard.Classes.ForbiddenPublicProperty
1 parent acfaf7e commit e70a7d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

MO4/ruleset.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@
101101
<property name="linesCountBeforeClosingBrace" value="0"/>
102102
</properties>
103103
</rule>
104+
<!-- Forbid properties to be public -->
105+
<rule ref="SlevomatCodingStandard.Classes.ForbiddenPublicProperty">
106+
<properties>
107+
<property name="checkPromoted" value="true"/>
108+
</properties>
109+
</rule>
104110
<!-- Require usage of ::class instead of __CLASS__, get_class(), get_class($this), get_called_class() and get_parent_class() -->
105111
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
106112
<!-- report invalid format of inline phpDocs with @var -->

0 commit comments

Comments
 (0)