Skip to content

Commit 769b318

Browse files
committed
Changelog for PHPCSUtils 1.1.2
Includes a few minor documentation fixes.
1 parent f97ece7 commit 769b318

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

.github/release-checklist.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ PR for tracking changes for the x.x.x release. Target release date: **DOW MONTH
2626

2727
### Publicize
2828

29+
- [ ] Post on Mastodon about the release.
2930
- [ ] Tweet about the release.
3031
- [ ] Inform the primary dependants of this repo (PHPCSExtra, WordPressCS, PHPCompatibility and VariableAnalysis) about the release.

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,43 @@ This projects adheres to [Keep a CHANGELOG](https://keepachangelog.com/) and use
1010
_Nothing yet._
1111

1212

13+
## [1.1.2] - 2025-09-05
14+
15+
### Added
16+
17+
#### PHPCS BackCompat
18+
19+
* `BCFile::getMemberProperties()`: sync with PHPCS 3.13.3 - support for PHP 8.4 abstract properties. [#698]
20+
21+
#### Utils
22+
23+
* `Variables::getMemberProperties()`: support for PHP 8.4 abstract properties. [#698]
24+
25+
### Changed
26+
27+
#### Utils
28+
29+
* `TypeString::normalizeCase()` will now also normalize a fully qualified `true`, `false` or `null` type to unqualified. [#702]
30+
31+
#### Other
32+
33+
* Dropped support for [PHP_CodeSniffer] < 3.13.3. [#698]
34+
Please ensure you run `composer update phpcsstandards/phpcsutils --with-dependencies` to benefit from this.
35+
* Various housekeeping.
36+
37+
### Fixed
38+
39+
#### Utils
40+
41+
* `TypeString::isNullable()`: a type string with a fully qualified `null` was not recognized as nullable. [#702]
42+
* `TypeString::isKeyword()`: a fully qualified `true`, `false` or `null` type was not recognized as a keyword type. [#702]
43+
44+
_Note: using fully qualified `true`, `false` or `null` in a typestring is not allowed by PHP. Even so, the `TypeString` utility will now handle this in a parse error tolerant manner._
45+
46+
[#698]: https://github.com/PHPCSStandards/PHPCSUtils/pull/698
47+
[#702]: https://github.com/PHPCSStandards/PHPCSUtils/pull/702
48+
49+
1350
## [1.1.1] - 2025-08-10
1451

1552
### Changed
@@ -1239,6 +1276,7 @@ This initial alpha release contains the following utility classes:
12391276

12401277

12411278
[Unreleased]: https://github.com/PHPCSStandards/PHPCSUtils/compare/stable...HEAD
1279+
[1.1.2]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.1.1...1.1.2
12421280
[1.1.1]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.1.0...1.1.1
12431281
[1.1.0]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.12...1.1.0
12441282
[1.0.12]: https://github.com/PHPCSStandards/PHPCSUtils/compare/1.0.11...1.0.12

PHPCSUtils/Utils/ObjectDeclarations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ public static function getDeclaredEnumCases(File $phpcsFile, $stackPtr)
440440
* in the return value.
441441
* However, keep in mind that passing the stack pointer of such a property to the
442442
* {@see Variables::getMemberProperties()} method is not supported.
443-
* - Interfaces and enums cannot contain properties. This method does not take this into
443+
* - Interfaces (prior to PHP 8.4) and enums cannot contain properties. This method does not take this into
444444
* account to allow sniffs to flag this kind of incorrect PHP code.
445445
*
446446
* @since 1.1.0

PHPCSUtils/Utils/TypeString.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,12 @@ public static function isKeyword($type)
137137
* Normalize the case for a single type.
138138
*
139139
* - Types which are recognized PHP "keyword" types will be returned in lowercase.
140-
* - Types which are recognized PHP "keyword" types and can be fully qualified (true/false/null)
141-
* will be returned as unqualified.
140+
* - Types which are recognized PHP "keyword" types and are incorrectly provided as fully qualified
141+
* (typically: true/false/null) will be returned as unqualified.
142142
* - Class/Interface/Enum names will be returned in their original case.
143143
*
144144
* @since 1.1.0
145+
* @since 1.1.2 Will now also normalize (illegal) FQN true/false/null to unqualified.
145146
*
146147
* @param string $type Type to normalize the case for.
147148
*

0 commit comments

Comments
 (0)