You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,20 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
8
8
9
9
_No documentation available about unreleased changes as of yet._
10
10
11
+
## [2.2.1] - 2020-02-04
12
+
13
+
### Added
14
+
- Metrics to the `WordPress.Arrays.CommaAfterArrayItem` sniff. These can be displayed using `--report=info`.
15
+
- The `sanitize_hex_color()` and the `sanitize_hex_color_no_hash()` functions to the `escapingFunctions` list used by the `WordPress.Security.EscapeOutput` sniff.
16
+
17
+
### Changed
18
+
- The recommended version of the suggested DealerDirect PHPCS Composer plugin is now `^0.6`.
19
+
20
+
### Fixed
21
+
-`WordPress.PHP.NoSilencedErrors`: depending on the custom properties set, the metrics would be different.
22
+
-`WordPress.WhiteSpace.ControlStructureSpacing`: fixed undefined index notice for closures with `use`.
23
+
-`WordPress.WP.GlobalVariablesOverride`: fixed undefined offset notice when the `treat_files_as_scoped` property would be set to `true`.
24
+
-`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.
11
25
12
26
## [2.2.0] - 2019-11-11
13
27
@@ -1148,6 +1162,7 @@ See the comparison for full list.
0 commit comments