Skip to content

Commit

Permalink
Disallow Short Echos 1.x (#6)
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 7ded26a commit b9fe30f
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 -->
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
Expand Down

0 comments on commit b9fe30f

Please sign in to comment.