Skip to content

Commit 005de74

Browse files
committed
Allow non-camelCase class members (Model attributes)
1 parent 7b125d5 commit 005de74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

IxDFCodingStandard/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@
403403
<rule ref="Squiz.Classes.ClassFileName"/><!-- Forbid class being in a file with different name -->
404404
<rule ref="Squiz.Operators.ValidLogicalOperators"/><!-- Forbid `AND` and `OR`, require `&&` and `||` -->
405405
<rule ref="Squiz.NamingConventions.ValidVariableName"><!-- Force camelCase variables -->
406+
<exclude name="Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps"/><!-- Eloquent attributes -->
406407
<exclude name="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore" />
407408
</rule>
408409
<rule ref="Squiz.PHP.GlobalKeyword"/><!-- Forbid `global` -->

0 commit comments

Comments
 (0)