@@ -664,33 +664,54 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
664
664
- Sniff no longer errors for assignments on first line of closure
665
665
- Sniff no longer errors for assignments after a goto label
666
666
- Thanks to [ Jaroslav Hanslík] [ @kukulich ] for the patch
667
- - Fixed bug #2913 : Generic.WhiteSpace.ScopeIndent false positive when opening and closing tag on same line inside conditional
668
- - Fixed bug #2992 : Enabling caching using a ruleset produces invalid cache files when using --sniffs and --exclude CLI args
669
- - Fixed bug #3003 : Squiz.Formatting.OperatorBracket autofix incorrect when assignment used with null coalescing operator
670
- - Fixed bug #3145 : Autoloading of sniff fails when multiple classes declared in same file
671
- - Fixed bug #3157 : PSR2.ControlStructures.SwitchDeclaration.BreakIndent false positive when case keyword is not indented
672
- - Fixed bug #3163 : Undefined index error with pre-commit hook using husky on PHP 7.4
667
+ - Fixed bug [ #2913 ] : Generic.WhiteSpace.ScopeIndent false positive when opening and closing tag on same line inside conditional
668
+ - Fixed bug [ #2992 ] : Enabling caching using a ruleset produces invalid cache files when using --sniffs and --exclude CLI args
669
+ - Fixed bug [ #3003 ] : Squiz.Formatting.OperatorBracket autofix incorrect when assignment used with null coalescing operator
670
+ - Fixed bug [ #3145 ] : Autoloading of sniff fails when multiple classes declared in same file
671
+ - Fixed bug [ #3157 ] : PSR2.ControlStructures.SwitchDeclaration.BreakIndent false positive when case keyword is not indented
672
+ - Fixed bug [ #3163 ] : Undefined index error with pre-commit hook using husky on PHP 7.4
673
673
- Thanks to [ Ismo Vuorinen] [ @ivuorinen ] for the patch
674
- - Fixed bug #3165 : Squiz.PHP.DisallowComparisonAssignment false positive when comparison inside closure
675
- - Fixed bug #3167 : Generic.WhiteSpace.ScopeIndent false positive when using PHP 8.0 constructor property promotion
676
- - Fixed bug #3170 : Squiz.WhiteSpace.OperatorSpacing false positive when using negation with string concat
674
+ - Fixed bug [ #3165 ] : Squiz.PHP.DisallowComparisonAssignment false positive when comparison inside closure
675
+ - Fixed bug [ #3167 ] : Generic.WhiteSpace.ScopeIndent false positive when using PHP 8.0 constructor property promotion
676
+ - Fixed bug [ #3170 ] : Squiz.WhiteSpace.OperatorSpacing false positive when using negation with string concat
677
677
- This also fixes the same issue in the PSR12.Operators.OperatorSpacing sniff
678
- - Fixed bug #3177 : Incorrect tokenization of GOTO statements in mixed PHP/HTML files
678
+ - Fixed bug [ #3177 ] : Incorrect tokenization of GOTO statements in mixed PHP/HTML files
679
679
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
680
- - Fixed bug #3184 : PSR2.Namespace.NamespaceDeclaration false positive on namespace operator
680
+ - Fixed bug [ #3184 ] : PSR2.Namespace.NamespaceDeclaration false positive on namespace operator
681
681
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
682
- - Fixed bug #3188 : Squiz.WhiteSpace.ScopeKeywordSpacing false positive for static return type
682
+ - Fixed bug [ #3188 ] : Squiz.WhiteSpace.ScopeKeywordSpacing false positive for static return type
683
683
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
684
- - Fixed bug #3192 : findStartOfStatement doesn't work correctly inside switch
684
+ - Fixed bug [ #3192 ] : findStartOfStatement doesn't work correctly inside switch
685
685
- Thanks to [ Vincent Langlet] [ @VincentLanglet ] for the patch
686
- - Fixed bug #3195 : Generic.WhiteSpace.ScopeIndent confusing message when combination of tabs and spaces found
687
- - Fixed bug #3197 : Squiz.NamingConventions.ValidVariableName does not use correct error code for all member vars
688
- - Fixed bug #3219 : Generic.Formatting.MultipleStatementAlignment false positive for empty anonymous classes and closures
689
- - Fixed bug #3258 : Squiz.Formatting.OperatorBracket duplicate error messages for unary minus
690
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
691
- - Fixed bug #3273 : Squiz.Functions.FunctionDeclarationArgumentSpacing reports line break as 0 spaces between parenthesis
692
- - Fixed bug #3277 : Nullable static return typehint causes whitespace error
693
- - Fixed bug #3284 : Unused parameter false positive when using array index in arrow function
686
+ - Fixed bug [ #3195 ] : Generic.WhiteSpace.ScopeIndent confusing message when combination of tabs and spaces found
687
+ - Fixed bug [ #3197 ] : Squiz.NamingConventions.ValidVariableName does not use correct error code for all member vars
688
+ - Fixed bug [ #3219 ] : Generic.Formatting.MultipleStatementAlignment false positive for empty anonymous classes and closures
689
+ - Fixed bug [ #3258 ] : Squiz.Formatting.OperatorBracket duplicate error messages for unary minus
690
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
691
+ - Fixed bug [ #3273 ] : Squiz.Functions.FunctionDeclarationArgumentSpacing reports line break as 0 spaces between parenthesis
692
+ - Fixed bug [ #3277 ] : Nullable static return typehint causes whitespace error
693
+ - Fixed bug [ #3284 ] : Unused parameter false positive when using array index in arrow function
694
+
695
+ [ #2913 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2913
696
+ [ #2992 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2992
697
+ [ #3003 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3003
698
+ [ #3145 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3145
699
+ [ #3157 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3157
700
+ [ #3163 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3163
701
+ [ #3165 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3165
702
+ [ #3167 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3167
703
+ [ #3170 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3170
704
+ [ #3177 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3177
705
+ [ #3184 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3184
706
+ [ #3188 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3188
707
+ [ #3192 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3192
708
+ [ #3195 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3195
709
+ [ #3197 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3197
710
+ [ #3219 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3219
711
+ [ #3258 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3258
712
+ [ #3273 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3273
713
+ [ #3277 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3277
714
+ [ #3284 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3284
694
715
695
716
## [ 3.5.8] - 2020-10-23
696
717
### Removed
0 commit comments