Skip to content

Commit 0f0d822

Browse files
committed
Changelog for the 3.12.2 release
1 parent 73858dc commit 0f0d822

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

CHANGELOG.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,68 @@ The file documents changes to the PHP_CodeSniffer project.
108108

109109
_Nothing yet._
110110

111+
## [3.12.2] - 2025-04-13
112+
113+
### Added
114+
- Added support for PHP 8.4 `final` properties to the following sniffs:
115+
- Generic.PHP.LowerCaseConstant [#948]
116+
- Generic.PHP.UpperCaseConstant [#948]
117+
- Squiz.Commenting.DocCommentAlignment [#951]
118+
- Squiz.Commenting.VariableComment [#949]
119+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patches.
120+
121+
### Changed
122+
- Tokenizer/PHP: a PHP open tag at the very end of a file will now always be tokenized as T_OPEN_TAG, independently of the PHP version. [#937]
123+
- Previously, a PHP open tag at the end of a file was not tokenized as an open tag on PHP < 7.4 and the tokenization would depend on the `short_open_tag` setting.
124+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
125+
- PEAR.Commenting.FunctionComment: improved message for "blank lines between docblock and declaration" check. [#830]
126+
- The documentation for the following sniffs has been improved:
127+
- Generic.Functions.OpeningFunctionBraceBsdAllman
128+
- Generic.Functions.OpeningFunctionBraceKernighanRitchie
129+
- Generic.WhiteSpace.LanguageConstructSpacing
130+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patches.
131+
- Various housekeeping, including improvements to the tests and documentation.
132+
- Thanks to [Rodrigo Primo][@rodrigoprimo] and [Juliette Reinders Folmer][@jrfnl] for their contributions.
133+
134+
### Fixed
135+
- Fixed bug [#830] : PEAR.Commenting.FunctionComment will no longer remove blank lines within attributes.
136+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
137+
- Fixed bug [#929] : Generic.PHP.ForbiddenFunctions: prevent false positives/negatives for code interlaced with comments.
138+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
139+
- Fixed bug [#934] : Generic.PHP.LowerCaseConstant and Generic.PHP.UpperCaseConstant will now correctly ignore DNF types for properties.
140+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
141+
- Fixed bug [#936] : Squiz.Commenting.FunctionCommentThrowTag: sniff would bow out when function has attributes attached, leading to false negatives.
142+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
143+
- Fixed bug [#940] : Squiz.Commenting.VariableComment: false positive for missing docblock for properties using DNF types.
144+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
145+
- Fixed bug [#944] : Squiz.Commenting.FunctionComment did not support DNF/intersection types in `@param` tags.
146+
- Thanks to [Jeffrey Angenent][@devfrey] for the patch.
147+
- Fixed bug [#945] : Squiz.WhiteSpace.FunctionSpacing would get confused when there are two docblocks above a function declaration.
148+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
149+
- Fixed bug [#947] : Squiz.Commenting.FunctionCommentThrowTag: prevent false positives/negatives for code interlaced with comments.
150+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
151+
- Fixed bug [#951] : Squiz.Commenting.DocCommentAlignment did not examine docblocks for `final` classes.
152+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
153+
- Fixed bug [#955] : Potential race condition, leading to a fatal error, when both the `Diff` + the `Code` reports are requested and caching is on.
154+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
155+
- Fixed bug [#956] : Generic.WhiteSpace.ScopeIndent: undefined array index notice when running in debug mode.
156+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
157+
158+
[#830]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/830
159+
[#929]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/929
160+
[#934]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/934
161+
[#936]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/936
162+
[#937]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/937
163+
[#940]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/940
164+
[#944]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/944
165+
[#945]: https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/945
166+
[#947]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/947
167+
[#948]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/948
168+
[#949]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/949
169+
[#951]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/951
170+
[#955]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/955
171+
[#956]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/956
172+
111173
## [3.12.1] - 2025-04-04
112174

113175
### Added
@@ -7552,6 +7614,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
75527614
-->
75537615

75547616
[Unreleased]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/master...HEAD
7617+
[3.12.2]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.12.1...3.12.2
75557618
[3.12.1]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.12.0...3.12.1
75567619
[3.12.0]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.11.3...3.12.0
75577620
[3.11.3]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.11.2...3.11.3
@@ -7715,6 +7778,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
77157778
[@Decave]: https://github.com/Decave
77167779
[@dereuromark]: https://github.com/dereuromark
77177780
[@derrabus]: https://github.com/derrabus
7781+
[@devfrey]: https://github.com/devfrey
77187782
[@deviantintegral]: https://github.com/deviantintegral
77197783
[@dhensby]: https://github.com/dhensby
77207784
[@dingo-d]: https://github.com/dingo-d

0 commit comments

Comments
 (0)