@@ -599,7 +599,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
599599- Added support for PHP 8.0 dereferencing of text strings with interpolated variables
600600 - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
601601- 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
603603 - Sniffs can listen for the T_MATCH token to process match expressions
604604 - Note that the case and default statements inside match expressions do not have scopes set
605605 - 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
674674 - Thanks to [ Vincent Langlet] [ @VincentLanglet ] for the patch
675675- PSR2.ControlStructures.SwitchDeclaration now supports nested switch statements where every branch terminates
676676 - 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
678678 - Thanks to [ Vincent Langlet] [ @VincentLanglet ] for the patch
679679- The PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket error message is now reported on the closing parenthesis token
680680 - 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
698698 - Sniff no longer errors for assignments on first line of closure
699699 - Sniff no longer errors for assignments after a goto label
700700 - 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
707707 - 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
711711 - 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
713713 - 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
715715 - 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
717717 - 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
719719 - 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
728749
729750## [ 3.5.8] - 2020-10-23
730751### Removed
0 commit comments