Skip to content

Commit

Permalink
ban echo
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Feb 16, 2024
1 parent ebdefcb commit 3006839
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,12 @@
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"/>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes" />

<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="echo" value="null"/>
</property>
</properties>
</rule>
</ruleset>

0 comments on commit 3006839

Please sign in to comment.