@@ -599,7 +599,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
599
599
- Added support for PHP 8.0 dereferencing of text strings with interpolated variables
600
600
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
601
601
- Added support for PHP 8.0 match expressions
602
- - Match expressions are now tokenised with parenthesis and scope openers and closers
602
+ - Match expressions are now tokenized with parenthesis and scope openers and closers
603
603
- Sniffs can listen for the T_MATCH token to process match expressions
604
604
- Note that the case and default statements inside match expressions do not have scopes set
605
605
- A new T_MATCH_ARROW token is available to represent the arrows in match expressions
@@ -674,7 +674,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
674
674
- Thanks to [ Vincent Langlet] [ @VincentLanglet ] for the patch
675
675
- PSR2.ControlStructures.SwitchDeclaration now supports nested switch statements where every branch terminates
676
676
- Previously, if a CASE only contained a SWITCH and no direct terminating statement, a fall-through error was displayed
677
- - Now, the error is surpressed if every branch of the SWITCH has a terminating statement
677
+ - Now, the error is suppressed if every branch of the SWITCH has a terminating statement
678
678
- Thanks to [ Vincent Langlet] [ @VincentLanglet ] for the patch
679
679
- The PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket error message is now reported on the closing parenthesis token
680
680
- Previously, the error was being reported on the function keyword, leading to confusing line numbers in the error report
@@ -698,33 +698,54 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
698
698
- Sniff no longer errors for assignments on first line of closure
699
699
- Sniff no longer errors for assignments after a goto label
700
700
- Thanks to [ Jaroslav Hanslík] [ @kukulich ] for the patch
701
- - Fixed bug #2913 : Generic.WhiteSpace.ScopeIndent false positive when opening and closing tag on same line inside conditional
702
- - Fixed bug #2992 : Enabling caching using a ruleset produces invalid cache files when using --sniffs and --exclude CLI args
703
- - Fixed bug #3003 : Squiz.Formatting.OperatorBracket autofix incorrect when assignment used with null coalescing operator
704
- - Fixed bug #3145 : Autoloading of sniff fails when multiple classes declared in same file
705
- - Fixed bug #3157 : PSR2.ControlStructures.SwitchDeclaration.BreakIndent false positive when case keyword is not indented
706
- - Fixed bug #3163 : Undefined index error with pre-commit hook using husky on PHP 7.4
701
+ - Fixed bug [ #2913 ] : Generic.WhiteSpace.ScopeIndent false positive when opening and closing tag on same line inside conditional
702
+ - Fixed bug [ #2992 ] : Enabling caching using a ruleset produces invalid cache files when using --sniffs and --exclude CLI args
703
+ - Fixed bug [ #3003 ] : Squiz.Formatting.OperatorBracket autofix incorrect when assignment used with null coalescing operator
704
+ - Fixed bug [ #3145 ] : Autoloading of sniff fails when multiple classes declared in same file
705
+ - Fixed bug [ #3157 ] : PSR2.ControlStructures.SwitchDeclaration.BreakIndent false positive when case keyword is not indented
706
+ - Fixed bug [ #3163 ] : Undefined index error with pre-commit hook using husky on PHP 7.4
707
707
- Thanks to [ Ismo Vuorinen] [ @ivuorinen ] for the patch
708
- - Fixed bug #3165 : Squiz.PHP.DisallowComparisonAssignment false positive when comparison inside closure
709
- - Fixed bug #3167 : Generic.WhiteSpace.ScopeIndent false positive when using PHP 8.0 constructor property promotion
710
- - Fixed bug #3170 : Squiz.WhiteSpace.OperatorSpacing false positive when using negation with string concat
708
+ - Fixed bug [ #3165 ] : Squiz.PHP.DisallowComparisonAssignment false positive when comparison inside closure
709
+ - Fixed bug [ #3167 ] : Generic.WhiteSpace.ScopeIndent false positive when using PHP 8.0 constructor property promotion
710
+ - Fixed bug [ #3170 ] : Squiz.WhiteSpace.OperatorSpacing false positive when using negation with string concat
711
711
- This also fixes the same issue in the PSR12.Operators.OperatorSpacing sniff
712
- - Fixed bug #3177 : Incorrect tokenization of GOTO statements in mixed PHP/HTML files
712
+ - Fixed bug [ #3177 ] : Incorrect tokenization of GOTO statements in mixed PHP/HTML files
713
713
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
714
- - Fixed bug #3184 : PSR2.Namespace.NamespaceDeclaration false positive on namespace operator
714
+ - Fixed bug [ #3184 ] : PSR2.Namespace.NamespaceDeclaration false positive on namespace operator
715
715
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
716
- - Fixed bug #3188 : Squiz.WhiteSpace.ScopeKeywordSpacing false positive for static return type
716
+ - Fixed bug [ #3188 ] : Squiz.WhiteSpace.ScopeKeywordSpacing false positive for static return type
717
717
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
718
- - Fixed bug #3192 : findStartOfStatement doesn't work correctly inside switch
718
+ - Fixed bug [ #3192 ] : findStartOfStatement doesn't work correctly inside switch
719
719
- Thanks to [ Vincent Langlet] [ @VincentLanglet ] for the patch
720
- - Fixed bug #3195 : Generic.WhiteSpace.ScopeIndent confusing message when combination of tabs and spaces found
721
- - Fixed bug #3197 : Squiz.NamingConventions.ValidVariableName does not use correct error code for all member vars
722
- - Fixed bug #3219 : Generic.Formatting.MultipleStatementAlignment false positive for empty anonymous classes and closures
723
- - Fixed bug #3258 : Squiz.Formatting.OperatorBracket duplicate error messages for unary minus
724
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
725
- - Fixed bug #3273 : Squiz.Functions.FunctionDeclarationArgumentSpacing reports line break as 0 spaces between parenthesis
726
- - Fixed bug #3277 : Nullable static return typehint causes whitespace error
727
- - Fixed bug #3284 : Unused parameter false positive when using array index in arrow function
720
+ - Fixed bug [ #3195 ] : Generic.WhiteSpace.ScopeIndent confusing message when combination of tabs and spaces found
721
+ - Fixed bug [ #3197 ] : Squiz.NamingConventions.ValidVariableName does not use correct error code for all member vars
722
+ - Fixed bug [ #3219 ] : Generic.Formatting.MultipleStatementAlignment false positive for empty anonymous classes and closures
723
+ - Fixed bug [ #3258 ] : Squiz.Formatting.OperatorBracket duplicate error messages for unary minus
724
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
725
+ - Fixed bug [ #3273 ] : Squiz.Functions.FunctionDeclarationArgumentSpacing reports line break as 0 spaces between parenthesis
726
+ - Fixed bug [ #3277 ] : Nullable static return typehint causes whitespace error
727
+ - Fixed bug [ #3284 ] : Unused parameter false positive when using array index in arrow function
728
+
729
+ [ #2913 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2913
730
+ [ #2992 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2992
731
+ [ #3003 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3003
732
+ [ #3145 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3145
733
+ [ #3157 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3157
734
+ [ #3163 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3163
735
+ [ #3165 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3165
736
+ [ #3167 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3167
737
+ [ #3170 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3170
738
+ [ #3177 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3177
739
+ [ #3184 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3184
740
+ [ #3188 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3188
741
+ [ #3192 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3192
742
+ [ #3195 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3195
743
+ [ #3197 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3197
744
+ [ #3219 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3219
745
+ [ #3258 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3258
746
+ [ #3273 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3273
747
+ [ #3277 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3277
748
+ [ #3284 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3284
728
749
729
750
## [ 3.5.8] - 2020-10-23
730
751
### Removed
0 commit comments