Skip to content

Commit ac1aadc

Browse files
Disallow Short Echo 2.x (#7)
Disallow Short Echo `<?= $var; ?>`
1 parent 5a0a7c7 commit ac1aadc

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

0 commit comments

Comments
 (0)