Skip to content

Commit 31ee38a

Browse files
committed
Changelog for the 3.9.2 release
1 parent 2f8ed54 commit 31ee38a

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

CHANGELOG.md

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

109109
_Nothing yet._
110110

111+
## [3.9.2] - 2024-04-24
112+
113+
### Changed
114+
- The Generic.ControlStructures.DisallowYodaConditions sniff no longer listens for the null coalesce operator. [#458]
115+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
116+
- Various housekeeping, including improvements to the tests and documentation.
117+
- Thanks to [Dan Wallis][@fredden], [Rodrigo Primo][@rodrigoprimo] and [Juliette Reinders Folmer][@jrfnl] for their contributions.
118+
119+
### Fixed
120+
- Fixed bug [#381] : Squiz.Commenting.ClosingDeclarationComment could throw the wrong error when the close brace being examined is at the very end of a file.
121+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
122+
- Fixed bug [#385] : Generic.CodeAnalysis.JumbledIncrementer improved handling of parse errors/live coding.
123+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
124+
- Fixed bug [#394] : Generic.Functions.CallTimePassByReference was not flagging call-time pass-by-reference in anonymous class instantiations
125+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
126+
- Fixed bug [#420] : PEAR.Functions.FunctionDeclaration could run into a blocking PHP notice while fixing code containing a parse error.
127+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
128+
- Fixed bug [#421] : File::getMethodProperties() small performance improvement & more defensive coding.
129+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
130+
- Fixed bug [#423] : PEAR.WhiteSpace.ScopeClosingBrace would have a fixer conflict with itself when a close tag was preceded by non-empty inline HTML.
131+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
132+
- Fixed bug [#424] : PSR2.Classes.ClassDeclaration using namespace relative interface names in the extends/implements part of a class declaration would lead to a fixer conflict.
133+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
134+
- Fixed bug [#427] : Squiz.Operators.OperatorSpacing would have a fixer conflict with itself when an operator was preceeded by a new line and the previous line ended in a comment.
135+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
136+
- Fixed bug [#430] : Squiz.ControlStructures.ForLoopDeclaration: fixed potential undefined array index notice
137+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
138+
- Fixed bug [#431] : PSR2.Classes.ClassDeclaration will no longer try to auto-fix multi-line interface implements statements if these are interlaced with comments on their own line. This prevents a potential fixer conflict.
139+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
140+
- Fixed bug [#453] : Arrow function tokenization was broken when the return type was a stand-alone `true` or `false`; or contained `true` or `false` as part of a union type.
141+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
142+
143+
### Other
144+
- [ESLint 9.0] has been released and changes the supported configuration file format.
145+
The (deprecated) `Generic.Debug.ESLint` sniff only supports the "old" configuration file formats and when using the sniff to run ESLint, the `ESLINT_USE_FLAT_CONFIG=false` environment variable will need to be set when using ESLint >= 9.0.
146+
For more information, see [#436].
147+
148+
149+
[ESLint 9.0]: https://eslint.org/blog/2024/04/eslint-v9.0.0-released/#flat-config-is-now-the-default-and-has-some-changes
150+
151+
[#381]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/381
152+
[#385]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/385
153+
[#394]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/394
154+
[#420]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/420
155+
[#421]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/421
156+
[#423]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/423
157+
[#424]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/424
158+
[#427]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/427
159+
[#430]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/430
160+
[#431]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/431
161+
[#436]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/436
162+
[#453]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/453
163+
[#458]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/458
164+
111165
## [3.9.1] - 2024-03-31
112166

113167
### Added
@@ -6931,6 +6985,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
69316985
-->
69326986

69336987
[Unreleased]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/master...HEAD
6988+
[3.9.2]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.9.1...3.9.2
69346989
[3.9.1]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.9.0...3.9.1
69356990
[3.9.0]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.8.1...3.9.0
69366991
[3.8.1]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.8.0...3.8.1

0 commit comments

Comments
 (0)