File tree Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ rawurlencode(); // Ok.
165165extract ( array ( 'a ' => 1 ) ); // Error.
166166$ obj ->extract (); // Ok.
167167
168- // WordPress.PHP .StrictComparisons.LooseComparison
168+ // Universal.Operators .StrictComparisons
169169true == $ true ; // Warning.
170170false === $ true ; // Ok.
171171
Original file line number Diff line number Diff line change 188188 <rule ref =" WordPress.PHP.DontExtract" >
189189 <severity >3</severity >
190190 </rule >
191- <rule ref =" WordPress.PHP .StrictComparisons.LooseComparison " >
191+ <rule ref =" Universal.Operators .StrictComparisons" >
192192 <severity >3</severity >
193193 </rule >
194194 <rule ref =" WordPress.PHP.StrictInArray.MissingTrueStrict" >
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ new WP_Query( array(
7272// WordPress.WP.GlobalVariablesOverride
7373$ GLOBALS ['wpdb ' ] = 'test ' ; // Error.
7474
75- // WordPress.PHP .StrictComparisons
75+ // Universal.Operators .StrictComparisons
7676if ( true == $ true ) { // Warning.
7777}
7878
Original file line number Diff line number Diff line change 3636 <rule ref =" WordPress.DB.DirectDatabaseQuery" />
3737 <rule ref =" WordPress.DB.SlowDBQuery" />
3838 <rule ref =" WordPress.WP.GlobalVariablesOverride" />
39- <rule ref =" WordPress.PHP.StrictComparisons" />
39+ <rule ref =" Universal.Operators.StrictComparisons" phpcs-only =" true" >
40+ <type >warning</type >
41+ </rule >
4042 <rule ref =" WordPress.CodeAnalysis.AssignmentInCondition" />
4143 <rule ref =" WordPress.PHP.StrictInArray" />
4244 <rule ref =" WordPress.PHP.DontExtract" />
Original file line number Diff line number Diff line change 1717 ],
1818 "require" : {
1919 "php" : " >=5.4" ,
20+ "phpcsstandards/phpcsextra" : " ^1.1.0" ,
2021 "phpcsstandards/phpcsutils" : " ^1.0.8" ,
2122 "sirbrillig/phpcs-variable-analysis" : " ^2.11.17" ,
2223 "squizlabs/php_codesniffer" : " ^3.7.2" ,
You can’t perform that action at this time.
0 commit comments