Skip to content

Commit 60ad345

Browse files
authored
Merge pull request #606 from PHPCSStandards/feature/changelog-1.0.12
Changelog for PHPCSUtils 1.0.12
2 parents 11d471a + e16e6fb commit 60ad345

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

CHANGELOG.md

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

1010
_Nothing yet._
1111

12+
## [1.0.12] - 2024-05-20
13+
14+
### Added
15+
16+
#### PHPCS BackCompat
17+
18+
* `BCFile::getMemberProperties()`: sync with PHPCS 3.10.0 - support for PHP 8.2 DNF types. [#604]
19+
* `BCFile::getMethodProperties()`: sync with PHPCS 3.10.0 - support for PHP 8.2 DNF types. [#604]
20+
* `BCFile::getMethodParameters()`: sync with PHPCS 3.10.0 - support for PHP 8.2 DNF types. [#604]
21+
22+
#### Utils
23+
24+
* `FunctionDeclarations::getParameters()`: support for PHP 8.2 DNF types. [#604]
25+
* `FunctionDeclarations::getProperties()`: support for PHP 8.2 DNF types. [#604]
26+
* `Variables::getMemberProperties()`: support for PHP 8.2 DNF types. [#604]
27+
28+
### Changed
29+
30+
#### Tokens
31+
32+
* `Collections::parameterTypeTokens()`, `Collections::propertyTypeTokens()` and `Collections::returnTypeTokens()`: now include the new `T_TYPE_OPEN_PARENTHESIS` and `T_TYPE_CLOSE_PARENTHESIS` tokens for PHP 8.2 DNF type support. [#604]
33+
34+
#### Utils
35+
36+
* `ControlStructures::getCaughtExceptions()`: will now silently ignore parse errors in the code under scan which prevent the method from analyzing a `catch` statement. [#594]
37+
The method will now return an empty array instead of throwing a `PHP_CodeSniffer\Exceptions\RuntimeException`.
38+
39+
#### Other
40+
41+
* Dropped support for [PHP_CodeSniffer] < 3.10.0. [#603]
42+
Please ensure you run `composer update phpcsstandards/phpcsutils --with-dependencies` to benefit from this.
43+
* Various housekeeping and documentation improvements.
44+
45+
### Fixed
46+
47+
#### Utils
48+
49+
* `UseStatements::splitImportUseStatement()`: the values in the return array will now never include a leading backslash. [#590]
50+
Previously the behaviour around import `use` statements declared with a leading backslash was undefined and the backslash would be included in the return value.
51+
52+
[#590]: https://github.com/PHPCSStandards/PHPCSUtils/pull/590
53+
[#594]: https://github.com/PHPCSStandards/PHPCSUtils/pull/594
54+
[#603]: https://github.com/PHPCSStandards/PHPCSUtils/pull/603
55+
[#604]: https://github.com/PHPCSStandards/PHPCSUtils/pull/604
56+
57+
1258
## [1.0.11] - 2024-04-24
1359

1460
### Changed
@@ -1005,6 +1051,7 @@ This initial alpha release contains the following utility classes:
10051051

10061052

10071053
[Unreleased]: https://github.com/PHPCSStandards/PHPCSUtils/compare/stable...HEAD
1054+
[1.0.12]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.11...1.0.12
10081055
[1.0.11]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.10...1.0.11
10091056
[1.0.10]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.9...1.0.10
10101057
[1.0.9]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.8...1.0.9

0 commit comments

Comments
 (0)