|
upstream release
upstream changelog:
Added
Metrics to the WordPress.Arrays.CommaAfterArrayItem sniff. These can be displayed using --report=info.
The sanitize_hex_color() and the sanitize_hex_color_no_hash() functions to the escapingFunctions list used by the WordPress.Security.EscapeOutput sniff.
Changed
The recommended version of the suggested DealerDirect PHPCS Composer plugin is now ^0.6.
Fixed
WordPress.PHP.NoSilencedErrors: depending on the custom properties set, the metrics would be different.
WordPress.WhiteSpace.ControlStructureSpacing: fixed undefined index notice for closures with use.
WordPress.WP.GlobalVariablesOverride: fixed undefined offset notice when the treat_files_as_scoped property would be set to true.
WordPress.WP.I18n: fixed a Trying to access array offset on value of type null error when the sniff was run on PHP 7.4 and would encounter a translation function expecting singular and plural texts for which one of these arguments was missing.
|