Skip to content

Commit b9fe30f

Browse files
Disallow Short Echos 1.x (#6)
Disallow Short Echo `<?= $var; ?>`
1 parent 7ded26a commit b9fe30f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/ModernTribe/ruleset.xml

+5
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@
8888
<rule ref="Generic.NamingConventions.ConstructorName"/>
8989
<!-- Forbid deprecated functions -->
9090
<rule ref="Generic.PHP.DeprecatedFunctions"/>
91+
<!-- Disable short echo tags. <?= $var; ?> -->
92+
<rule ref="Generic.PHP.DisallowShortOpenTag.EchoFound">
93+
<severity>4</severity>
94+
<type>warning</type>
95+
</rule>
9196

9297
<!-- Slevomat class formatting -->
9398
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>

0 commit comments

Comments
 (0)