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
+86Lines changed: 86 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,87 @@ The file documents changes to the PHP_CodeSniffer project.
6
6
7
7
_Nothing yet._
8
8
9
+
## [3.10.1] - 2024-05-22
10
+
11
+
### Added
12
+
- Documentation for the following sniffs:
13
+
- Generic.Commenting.DocComment
14
+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
15
+
16
+
### Changed
17
+
- The following have received efficiency improvements:
18
+
- Type handling in the PHP Tokenizer
19
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
20
+
- Various housekeeping, including improvements to the tests and documentation.
21
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for their contributions.
22
+
23
+
### Fixed
24
+
- Fixed bug [#110], [#437], [#475]: `File::findStartOfStatement()`: the start of statement/expression determination for tokens in parentheses/short array brackets/others scopes, nested within match expressions, was incorrect in most cases.
25
+
The trickle down effect of the bug fixes made to the `File::findStartOfStatement()` method, is that the Generic.WhiteSpace.ScopeIndent and the PEAR.WhiteSpace.ScopeIndent sniffs should now be able to correctly determine and fix the indent for match expressions containing nested expressions.
26
+
These fixes also fix an issue with the `Squiz.Arrays.ArrayDeclaration` sniff and possibly other, unreported bugs.
27
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
28
+
- Fixed bug [#504]: The tokenizer could inadvertently mistake the last parameter in a function call using named arguments for a DNF type.
29
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
30
+
- Fixed bug [#508]: Tokenizer/PHP: extra hardening against handling parse errors in the type handling layer.
31
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
- Tokenizer support for PHP 8.2 Disjunctive Normal Form (DNF) types. [#3731][sq-3731], [#387], [#461]
43
+
- Includes new `T_TYPE_OPEN_PARENTHESIS` and `T_TYPE_CLOSE_PARENTHESIS` tokens to represent the parentheses in DNF types.
44
+
- 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.
45
+
- The `File::getMethodProperties()`, `File::getMethodParameters()` and `File::getMemberProperties()` methods now all support DNF types. [#471], [#472], [#473]
46
+
- Additionally, the following sniff has been updated to support DNF types:
47
+
- Generic.PHP.LowerCaseType [#478]
48
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patches.
49
+
- Documentation for the following sniffs:
50
+
- Squiz.WhiteSpace.FunctionClosingBraceSpace
51
+
- Thanks to [Przemek Hernik][@przemekhernik] for the patch.
52
+
53
+
### Changed
54
+
- The help screens have received a face-lift for improved usability and readability. [#447]
55
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch and thanks to [Colin Stewart][@costdev], [Gary Jones][@GaryJones] and [@mbomb007] for reviewing.
56
+
- The Squiz.Commenting.ClosingDeclarationComment sniff will now also examine and flag closing comments for traits. [#442]
57
+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
58
+
- The following sniff(s) have efficiency improvements:
59
+
- Generic.Arrays.ArrayIndent
60
+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
61
+
- The autoloader will now always return a boolean value indicating whether it has loaded a class or not. [#479]
62
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
63
+
- Various housekeeping, including improvements to the tests and documentation.
64
+
- Thanks to [Dan Wallis][@fredden], [Danny van der Sluijs][@DannyvdSluijs], [Rodrigo Primo][@rodrigoprimo] and [Juliette Reinders Folmer][@jrfnl] for their contributions.
65
+
66
+
### Fixed
67
+
- Fixed bug [#466] : Generic.Functions.CallTimePassByReference was not flagging call-time pass-by-reference in class instantiations using the self/parent/static keywords.
68
+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
69
+
- Fixed bug [#494] : edge case bug in tokenization of an empty block comment.
70
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
71
+
- Fixed bug [#494] : edge case bug in tokenization of an empty single-line DocBlock.
72
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
73
+
- Fixed bug [#499] : Generic.ControlStructures.InlineControlStructure now handles statements with a comment between `else` and `if` correctly.
74
+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
0 commit comments