diff --git a/WordPress-Extra/ruleset.xml b/WordPress-Extra/ruleset.xml index 14529fc79b..aee8d0c2c7 100644 --- a/WordPress-Extra/ruleset.xml +++ b/WordPress-Extra/ruleset.xml @@ -27,7 +27,9 @@ + https://github.com/squizlabs/PHP_CodeSniffer/pull/1594 + Note: the "assignment in ternary" part of the sniff is currently not yet covered in + the upstream version. This needs to be pulled first before we can defer to upstream. --> + https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/919 + Note: there is a similar upstream sniff `PSR12.Classes.ClassInstantiation`, however + that sniff: + - does not cover JS files; + - does not demand parentheses for PHP anonymous classes; + - does not check the whitespace between the class name and the parentheses; + - does not check for PHP new by reference. + For those reasons, the WPCS version should remain. -->