File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 392392 <rule ref =" Squiz.PHP.DisallowMultipleAssignments" />
393393 <rule ref =" Generic.Formatting.DisallowMultipleStatements" />
394394
395+ <!-- Rule: Unless absolutely necessary, loose comparisons should not be used,
396+ as their behaviour can be misleading. -->
397+ <rule ref =" WordPress.PHP.StrictComparisons" />
398+ <rule ref =" WordPress.PHP.StrictInArray" />
399+
395400 <!-- Rule: Assignments must not be placed in placed in conditionals.
396401 Note: sniff is a duplicate of upstream. Can be removed once minimum PHPCS requirement has gone up.
397402 https://github.com/squizlabs/PHP_CodeSniffer/pull/1594
Original file line number Diff line number Diff line change 103103 https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/26 -->
104104 <rule ref =" WordPress.WP.GlobalVariablesOverride" />
105105
106- <!-- Encourage the use of strict ( === and !== ) comparisons.
107- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/242 -->
108- <rule ref =" WordPress.PHP.StrictComparisons" />
109-
110106 <!-- Detect incorrect or risky use of the `ini_set()` function.
111107 https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1447 -->
112108 <rule ref =" WordPress.PHP.IniSet" />
113109
114- <!-- Check that in_array() and array_search() use strict comparisons.
115- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/399
116- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/503 -->
117- <rule ref =" WordPress.PHP.StrictInArray" />
118-
119110 <!-- Check enqueue and register styles and scripts to have version and in_footer parameters explicitly set.
120111 https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1146 -->
121112 <rule ref =" WordPress.WP.EnqueuedResourceParameters" />
You can’t perform that action at this time.
0 commit comments