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
+43-3
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,44 @@ The file documents changes to the PHP_CodeSniffer project.
6
6
7
7
_Nothing yet._
8
8
9
+
## [3.10.2] - 2024-07-22
10
+
11
+
### Changed
12
+
- The following sniff(s) have received efficiency improvements:
13
+
- Generic.Functions.FunctionCallArgumentSpacing
14
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
15
+
- The array format of the information passed to the `Reports::generateFileReport()` method is now documented in the Reports interface. [#523]
16
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
17
+
- Various housekeeping, including improvements to the tests and documentation.
18
+
- Thanks to [Bill Ruddock][@biinari], [Dan Wallis][@fredden], [Klaus Purer][@klausi], [Rodrigo Primo][@rodrigoprimo] and [Juliette Reinders Folmer][@jrfnl] for their contributions.
19
+
20
+
### Fixed
21
+
- Fixed bug [#513] : Generic.Functions.FunctionCallArgumentSpacing did not ignore the body of a match expressions passed as a function argument, which could lead to false positives.
22
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
23
+
- Fixed bug [#533] : Generic.WhiteSpace.DisallowTabIndent: tab indentation for heredoc/nowdoc closers will no longer be auto-fixed to prevent parse errors. The issue will still be reported.
24
+
- The error code for heredoc/nowdoc indentation using tabs has been made more specific - `TabsUsedHeredocCloser` - to allow for selectively excluding the indentation check for heredoc/nowdoc closers.
25
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
26
+
- Fixed bug [#534] : Generic.WhiteSpace.DisallowSpaceIndent did not report on space indentation for PHP 7.3 flexible heredoc/nowdoc closers.
27
+
- Closers using space indentation will be reported with a dedicated error code: `SpacesUsedHeredocCloser`.
28
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
29
+
- Fixed bug [#537] : Squiz.PHP.DisallowMultipleAssignments false positive for list assignments at the start of a new PHP block after an embedded PHP statement.
30
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
31
+
- Fixed bug [#551] : Squiz.PHP.DisallowMultipleAssignments prevent false positive for function parameters during live coding.
32
+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
33
+
- Fixed bug [#554] : Generic.CodeAnalysis.UselessOverridingMethod edge case false negative when the call to the parent method would end on a PHP close tag.
34
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
35
+
- Fixed bug [#555] : Squiz.Classes.SelfMemberReference edge case false negative when the namespace declaration would end on a PHP close tag.
36
+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
- Thanks to [Juliette Reinders Folmer][@jrfnl] for their contributions.
22
60
23
61
### 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.
62
+
- 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
63
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
64
These fixes also fix an issue with the `Squiz.Arrays.ArrayDeclaration` sniff and possibly other, unreported bugs.
27
65
- 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.
66
+
- Fixed bug [#504]: The tokenizer could inadvertently mistake the last parameter in a function call using named arguments for a DNF type.
29
67
- 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.
68
+
- Fixed bug [#508]: Tokenizer/PHP: extra hardening against handling parse errors in the type handling layer.
31
69
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
0 commit comments