Skip to content

Commit 473590f

Browse files
committed
Changelog for WPCS 2.2.1
* Release date set at this **Tuesday February 4rd**. * Includes all currently merged changes.
1 parent 1761834 commit 473590f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
88

99
_No documentation available about unreleased changes as of yet._
1010

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.
1125

1226
## [2.2.0] - 2019-11-11
1327

@@ -1148,6 +1162,7 @@ See the comparison for full list.
11481162
Initial tagged release.
11491163

11501164
[Unreleased]: https://github.com/WordPress/WordPress-Coding-Standards/compare/master...HEAD
1165+
[2.2.1]: https://github.com/WordPress/WordPress-Coding-Standards/compare/2.2.0...2.2.1
11511166
[2.2.0]: https://github.com/WordPress/WordPress-Coding-Standards/compare/2.1.1...2.2.0
11521167
[2.1.1]: https://github.com/WordPress/WordPress-Coding-Standards/compare/2.1.0...2.1.1
11531168
[2.1.0]: https://github.com/WordPress/WordPress-Coding-Standards/compare/2.0.0...2.1.0

0 commit comments

Comments
 (0)