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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Added
Changed
Fixed
match
-es #110, Undefined array key in Generic.WhiteSpace.ScopeIndent #437, Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned doesn't work inside match #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.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.These fixes also fix an issue with the
Squiz.Arrays.ArrayDeclaration
sniff and possibly other, unreported bugs.Statistics
Closed: 5 issues
Merged: 7 pull requests
If you like to stay informed about releases and more, follow @phpcs on Mastodon or @PHP_CodeSniffer on X.
Full Changelog: 3.10.0...3.10.1
This discussion was created from the release 3.10.1 - 2024-05-22.
Beta Was this translation helpful? Give feedback.
All reactions