Skip to content

Commit 864d5c2

Browse files
authored
Merge pull request #478 from PHPCSStandards/feature/changelog-1.0.6
Changelog for PHPCSUtils 1.0.6
2 parents 2b06f54 + 8bb2504 commit 864d5c2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

CHANGELOG.md

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

1010
_Nothing yet._
1111

12+
13+
## [1.0.6] - 2023-05-27
14+
15+
### Changed
16+
17+
#### PHPCS BackCompat
18+
19+
* `BCFile::getClassProperties()`: sync with PHPCS 3.8.0 - support for PHP 8.2 `readonly` classes. [#470]
20+
* `BCFile::getMethodParameters()`: sync with PHPCS 3.8.0 - support for constructor property promotion with `readonly` properties without explicit visibility. [#472]
21+
22+
#### Utils
23+
24+
* The results of the following methods will now (also) be cached for improved performance when multiple sniffs call these functions for the same token during a PHPCS run. [#464], [#466]
25+
- `FunctionDeclarations::getProperties()`
26+
- `Variables::getMemberProperties()`
27+
* Additionally, the results of the `UseStatements::splitImportUseStatement()` method will be cached more often and the cache checked earlier. [#467]
28+
* The return value of the `ControlStructures::getCaughtExceptions()` method will no longer contain "empty" entries for catch statements without a named exception. It will return an empty array instead. [#474]
29+
30+
#### Other
31+
32+
* Various small housekeeping and maintenance updates.
33+
34+
### Fixed
35+
36+
### Abstract Sniffs
37+
38+
* `AbstractArrayDeclarationSniff`: fixed a potential "Trying to access array offset on value of type bool" PHP notice. [#476]
39+
* `AbstractArrayDeclarationSniff`: the abstract will no longer trigger potentially available magic `__get()`/`__set()` etc methods. [#477]
40+
41+
[#464]: https://github.com/PHPCSStandards/PHPCSUtils/pull/464
42+
[#466]: https://github.com/PHPCSStandards/PHPCSUtils/pull/466
43+
[#467]: https://github.com/PHPCSStandards/PHPCSUtils/pull/467
44+
[#470]: https://github.com/PHPCSStandards/PHPCSUtils/pull/470
45+
[#472]: https://github.com/PHPCSStandards/PHPCSUtils/pull/472
46+
[#474]: https://github.com/PHPCSStandards/PHPCSUtils/pull/474
47+
[#476]: https://github.com/PHPCSStandards/PHPCSUtils/pull/476
48+
[#477]: https://github.com/PHPCSStandards/PHPCSUtils/pull/477
49+
50+
1251
## [1.0.5] - 2023-04-17
1352

1453
### Fixed
@@ -850,6 +889,7 @@ This initial alpha release contains the following utility classes:
850889

851890

852891
[Unreleased]: https://github.com/PHPCSStandards/PHPCSUtils/compare/stable...HEAD
892+
[1.0.6]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.5...1.0.6
853893
[1.0.5]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.4...1.0.5
854894
[1.0.4]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.3...1.0.4
855895
[1.0.3]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.2...1.0.3

0 commit comments

Comments
 (0)