You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+55Lines changed: 55 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,57 @@ The file documents changes to the PHP_CodeSniffer project.
6
6
7
7
_Nothing yet._
8
8
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.
0 commit comments