Skip to content

Commit

Permalink
Add discouraged functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Sep 17, 2024
1 parent b61373e commit d916d8f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions phpcs-rulesets/plugin-review.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,21 @@
<element key="create_function" value="null"/>
<element key="eval" value="null"/>
<element key="str_rot13" value="null"/>
</property>
</properties>
<type>error</type>
<severity>7</severity>
</rule>

<rule ref="Squiz.PHP.DiscouragedFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="set_time_limit" value="null"/>
<element key="ini_set" value="null"/>
<element key="ini_alter" value="null"/>
<element key="dl" value="null"/>
</property>
</properties>
<type>error</type>
<severity>7</severity>
</rule>

<!-- Check for use of deprecated WordPress classes, functions and function parameters. -->
Expand All @@ -114,4 +121,7 @@
<!-- Check for usage of deprecated parameter values in WP functions and provide alternative based on the parameter passed. -->
<rule ref="WordPress.WP.DeprecatedParameterValues"/>




</ruleset>

0 comments on commit d916d8f

Please sign in to comment.