Skip to content

Commit

Permalink
Disallow Short Echo 2.x (#7)
Browse files Browse the repository at this point in the history
Disallow Short Echo `<?= $var; ?>`
  • Loading branch information
ChrisMKindred authored Apr 4, 2022
1 parent 5a0a7c7 commit ac1aadc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ModernTribe/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@
<rule ref="Generic.NamingConventions.ConstructorName"/>
<!-- Forbid deprecated functions -->
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<!-- Disable short echo tags. <?= $var; ?> -->
<rule ref="Generic.PHP.DisallowShortOpenTag.EchoFound">
<severity>4</severity>
<type>warning</type>
</rule>

<!-- Slevomat class formatting -->

Expand Down

0 comments on commit ac1aadc

Please sign in to comment.