Skip to content

Commit f1ddb82

Browse files
authored
Merge pull request #447 from PHPCSStandards/feature/changelog-release-1.0.2
Changelog for PHPCSUtils 1.0.2
2 parents fa17190 + b7598ec commit f1ddb82

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

CHANGELOG.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,32 @@ This projects adheres to [Keep a CHANGELOG](https://keepachangelog.com/) and use
99

1010
_Nothing yet._
1111

12+
## [1.0.2] - 2023-03-28
13+
14+
### Changed
15+
16+
#### Tokens
17+
18+
* The `Collections::arrayOpenTokensBC()`, `Collections::arrayTokensBC()`, `Collections::listOpenTokensBC()`, `Collections::listTokensBC()`, `Collections::shortArrayListOpenTokensBC()`, `Collections::shortArrayTokensBC()` and `Collections::shortListTokensBC()` token arrays will no longer contain the `T_OPEN_SQUARE_BRACKET` and/or the `T_CLOSE_SQUARE_BRACKET` token constants if PHP_CodeSniffer 3.7.2 or higher is used. [#444]
19+
An upstream bugfix makes it unnecessary to check those tokens for being a short array or short list.
20+
Sniff which use these token arrays is combination with using the `Arrays`/`Lists` classes, should experience a performance boost on PHPCS 3.7.2+ due to this change.
21+
22+
#### Other
23+
24+
* Minor documentation improvements.
25+
* Various small housekeeping and maintenance updates.
26+
27+
### Fixed
28+
29+
#### Utils
30+
31+
* The `Lists::isShortList()` method will now correctly recognize a short list nested in a long list as a short list. [#446]
32+
Note: this is a parse error in PHP, but the method should still handle this correctly.
33+
34+
[#444]: https://github.com/PHPCSStandards/PHPCSUtils/pull/444
35+
[#446]: https://github.com/PHPCSStandards/PHPCSUtils/pull/446
36+
37+
1238
## [1.0.1] - 2023-01-05
1339

1440
### Changed
@@ -18,7 +44,7 @@ _Nothing yet._
1844
* Composer: The version requirements for the [Composer PHPCS plugin] have been widened to allow for version 1.0.0. [#428]
1945
Please ensure you run `composer update phpcsstandards/phpcsutils --with-dependencies` to benefit from this.
2046
* Removed the references to pre-1.0.0 QA releases from the docs. [#425]
21-
* Various small housekeeping and maintainance updates. Thanks [@szepeviktor] for contributing.
47+
* Various small housekeeping and maintenance updates. Thanks [@szepeviktor] for contributing.
2248

2349
[#425]: https://github.com/PHPCSStandards/PHPCSUtils/pull/425
2450
[#428]: https://github.com/PHPCSStandards/PHPCSUtils/pull/428
@@ -58,7 +84,7 @@ For the full list of features, please see the changelogs of the alpha/rc release
5884

5985
#### Other
6086

61-
* Various housekeeping and CI maintainance.
87+
* Various housekeeping and CI maintenance.
6288

6389
### Removed
6490

@@ -259,7 +285,7 @@ Please report any bugs/oversights you encounter!
259285
* Composer: The package will now identify itself as a static analysis tool. Thanks [@GaryJones]! [#341]
260286
* Readme/website homepage: the installation instructions have been updated to include information on installing this library and the included [Composer PHPCS plugin] in combination with Composer >= 2.2. [#291], [#292]
261287
* Various documentation improvements. [#216], [#309], [#394], [#395], [#396], [#398]
262-
* Various housekeeping and CI maintainance.
288+
* Various housekeeping and CI maintenance.
263289
Amongst other things, CI is now run via GitHub Actions ([#239]), the PHPCSUtils native tests now use the [PHPUnit Polyfills] package ([#277]) and the tests are now run against PHP 5.4 - 8.2.
264290

265291
### Deprecated
@@ -779,6 +805,7 @@ This initial alpha release contains the following utility classes:
779805

780806

781807
[Unreleased]: https://github.com/PHPCSStandards/PHPCSUtils/compare/stable...HEAD
808+
[1.0.2]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.1...1.0.2
782809
[1.0.1]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.0...1.0.1
783810
[1.0.0]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.0-rc1...1.0.0
784811
[1.0.0-rc1]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.0-alpha4...1.0.0-rc1

0 commit comments

Comments
 (0)