Skip to content

Commit 98eaf50

Browse files
committed
Changelog for the 3.10.0 release
1 parent b7c2356 commit 98eaf50

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
@@ -6,6 +6,57 @@ The file documents changes to the PHP_CodeSniffer project.
66

77
_Nothing yet._
88

9+
## [3.10.0] - 2024-05-20
10+
11+
### Added
12+
- Tokenizer support for PHP 8.2 Disjunctive Normal Form (DNF) types. [#3731][sq-3731], [#387], [#461]
13+
- Includes new `T_TYPE_OPEN_PARENTHESIS` and `T_TYPE_CLOSE_PARENTHESIS` tokens to represent the parentheses in DNF types.
14+
- These new tokens, like other parentheses, will have the `parenthesis_opener` and `parenthesis_closer` token array indexes set and the tokens between them will have the `nested_parenthesis` index.
15+
- The `File::getMethodProperties()`, `File::getMethodParameters()` and `File::getMemberProperties()` methods now all support DNF types. [#471], [#472], [#473]
16+
- Additionally, the following sniff has been updated to support DNF types:
17+
- Generic.PHP.LowerCaseType [#478]
18+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patches.
19+
- Documentation for the following sniffs:
20+
- Squiz.WhiteSpace.FunctionClosingBraceSpace
21+
- Thanks to [Przemek Hernik][@przemekhernik] for the patch.
22+
23+
### Changed
24+
- The help screens have received a face-lift for improved usability and readability. [#447]
25+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch and thanks to [Colin Stewart][@costdev], [Gary Jones][@GaryJones] and [@mbomb007] for reviewing.
26+
- The Squiz.Commenting.ClosingDeclarationComment sniff will now also examine and flag closing comments for traits. [#442]
27+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
28+
- The following sniff(s) have efficiency improvements:
29+
- Generic.Arrays.ArrayIndent
30+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
31+
- The autoloader will now always return a boolean value indicating whether it has loaded a class or not. [#479]
32+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
33+
- Various housekeeping, including improvements to the tests and documentation.
34+
- Thanks to [Dan Wallis][@fredden], [Danny van der Sluijs][@DannyvdSluijs], [Rodrigo Primo][@rodrigoprimo] and [Juliette Reinders Folmer][@jrfnl] for their contributions.
35+
36+
### Fixed
37+
- Fixed bug [#466] : Generic.Functions.CallTimePassByReference was not flagging call-time pass-by-reference in class instantiations using the self/parent/static keywords.
38+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
39+
- Fixed bug [#494] : edge case bug in tokenization of an empty block comment.
40+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
41+
- Fixed bug [#494] : edge case bug in tokenization of an empty single-line DocBlock.
42+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
43+
- Fixed bug [#499] : Generic.ControlStructures.InlineControlStructure now handles statements with a comment between `else` and `if` correctly.
44+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
45+
46+
[sq-3731]: https://github.com/squizlabs/PHP_CodeSniffer/issues/3731
47+
[#387]: https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/387
48+
[#442]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/442
49+
[#447]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/447
50+
[#461]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/461
51+
[#466]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/466
52+
[#471]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/471
53+
[#472]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/472
54+
[#473]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/473
55+
[#478]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/478
56+
[#479]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/479
57+
[#494]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/494
58+
[#499]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/499
59+
960
## [3.9.2] - 2024-04-24
1061

1162
### Changed
@@ -6883,6 +6934,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
68836934
-->
68846935

68856936
[Unreleased]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/master...HEAD
6937+
[3.10.0]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.9.2...3.10.0
68866938
[3.9.2]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.9.1...3.9.2
68876939
[3.9.1]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.9.0...3.9.1
68886940
[3.9.0]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.8.1...3.9.0
@@ -7020,6 +7072,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
70207072
[@cixtor]: https://github.com/cixtor
70217073
[@claylo]: https://github.com/claylo
70227074
[@codebymikey]: https://github.com/codebymikey
7075+
[@costdev]: https://github.com/costdev
70237076
[@covex-nn]: https://github.com/covex-nn
70247077
[@cweiske]: https://github.com/cweiske
70257078
[@Daimona]: https://github.com/Daimona
@@ -7118,6 +7171,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
71187171
[@michaelbutler]: https://github.com/michaelbutler
71197172
[@michalbundyra]: https://github.com/michalbundyra
71207173
[@Morerice]: https://github.com/Morerice
7174+
[@mbomb007]: https://github.com/mbomb007
71217175
[@morozov]: https://github.com/morozov
71227176
[@mrkrstphr]: https://github.com/mrkrstphr
71237177
[@mythril]: https://github.com/mythril
@@ -7136,6 +7190,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
71367190
[@pfrenssen]: https://github.com/pfrenssen
71377191
[@phil-davis]: https://github.com/phil-davis
71387192
[@photodude]: https://github.com/photodude
7193+
[@przemekhernik]: https://github.com/przemekhernik
71397194
[@r3nat]: https://github.com/r3nat
71407195
[@raul338]: https://github.com/raul338
71417196
[@realmfoo]: https://github.com/realmfoo

0 commit comments

Comments
 (0)