@@ -1001,23 +1001,37 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
1001
1001
### Fixed
1002
1002
- Error wording in PEAR.Functions.FunctionCallSignature now always uses "parenthesis" instead of sometimes using "bracket"
1003
1003
- Thanks to [ Vincent Langlet] [ @VincentLanglet ] for the patch
1004
- - Fixed bug #2787 : Squiz.PHP.DisallowMultipleAssignments not ignoring typed property declarations
1004
+ - Fixed bug [ #2787 ] : Squiz.PHP.DisallowMultipleAssignments not ignoring typed property declarations
1005
1005
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1006
- - Fixed bug #2810 : PHPCBF fails to fix file with empty statement at start on control structure
1007
- - Fixed bug #2812 : Squiz.Arrays.ArrayDeclaration not detecting some arrays with multiple arguments on the same line
1006
+ - Fixed bug [ #2810 ] : PHPCBF fails to fix file with empty statement at start on control structure
1007
+ - Fixed bug [ #2812 ] : Squiz.Arrays.ArrayDeclaration not detecting some arrays with multiple arguments on the same line
1008
1008
- Thanks to [ Jakub Chábek] [ @grongor ] for the patch
1009
- - Fixed bug #2826 : Generic.WhiteSpace.ArbitraryParenthesesSpacing doesn't detect issues for statements directly after a control structure
1009
+ - Fixed bug [ #2826 ] : Generic.WhiteSpace.ArbitraryParenthesesSpacing doesn't detect issues for statements directly after a control structure
1010
1010
- Thanks to [ Vincent Langlet] [ @VincentLanglet ] for the patch
1011
- - Fixed bug #2848 : PSR12.Files.FileHeader false positive for file with mixed PHP and HTML and no file header
1012
- - Fixed bug #2849 : Generic.WhiteSpace.ScopeIndent false positive with arrow function inside array
1013
- - Fixed bug #2850 : Generic.PHP.LowerCaseKeyword complains __ HALT_COMPILER is uppercase
1014
- - Fixed bug #2853 : Undefined variable error when using Info report
1015
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1016
- - Fixed bug #2865 : Double arrow tokenized as T_STRING when placed after function named "fn"
1017
- - Fixed bug #2867 : Incorrect scope matching when arrow function used inside IF condition
1018
- - Fixed bug #2868 : phpcs: ignore annotation doesnt work inside a docblock
1019
- - Fixed bug #2878 : PSR12.Files.FileHeader conflicts with Generic.Files.LineEndings
1020
- - Fixed bug #2895 : PSR2.Methods.FunctionCallSignature.MultipleArguments false positive with arrow function argument
1011
+ - Fixed bug [ #2848 ] : PSR12.Files.FileHeader false positive for file with mixed PHP and HTML and no file header
1012
+ - Fixed bug [ #2849 ] : Generic.WhiteSpace.ScopeIndent false positive with arrow function inside array
1013
+ - Fixed bug [ #2850 ] : Generic.PHP.LowerCaseKeyword complains __ HALT_COMPILER is uppercase
1014
+ - Fixed bug [ #2853 ] : Undefined variable error when using Info report
1015
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1016
+ - Fixed bug [ #2865 ] : Double arrow tokenized as T_STRING when placed after function named "fn"
1017
+ - Fixed bug [ #2867 ] : Incorrect scope matching when arrow function used inside IF condition
1018
+ - Fixed bug [ #2868 ] : phpcs: ignore annotation doesn't work inside a docblock
1019
+ - Fixed bug [ #2878 ] : PSR12.Files.FileHeader conflicts with Generic.Files.LineEndings
1020
+ - Fixed bug [ #2895 ] : PSR2.Methods.FunctionCallSignature.MultipleArguments false positive with arrow function argument
1021
+
1022
+ [ #2787 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2787
1023
+ [ #2810 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2810
1024
+ [ #2812 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2812
1025
+ [ #2826 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2826
1026
+ [ #2848 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2848
1027
+ [ #2849 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2849
1028
+ [ #2850 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2850
1029
+ [ #2853 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2853
1030
+ [ #2865 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2865
1031
+ [ #2867 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2867
1032
+ [ #2868 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2868
1033
+ [ #2878 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2878
1034
+ [ #2895 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2895
1021
1035
1022
1036
## [ 3.5.4] - 2020-01-31
1023
1037
### Changed
@@ -1033,7 +1047,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
1033
1047
- Previously it required these to have curly braces, but there were no statements to enclose in them
1034
1048
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1035
1049
- PSR12.ControlStructures.BooleanOperatorPlacement can now be configured to enforce a specific operator position
1036
- - By default, the sniff ensures that operators are all at the begining or end of lines, but not a mix of both
1050
+ - By default, the sniff ensures that operators are all at the beginning or end of lines, but not a mix of both
1037
1051
- Set the allowOnly property to "first" to enforce all boolean operators to be at the start of a line
1038
1052
- Set the allowOnly property to "last" to enforce all boolean operators to be at the end of a line
1039
1053
- Thanks to [ Vincent Langlet] [ @VincentLanglet ] for the patch
@@ -1045,37 +1059,56 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
1045
1059
- Squiz.PHP.InnerFunctions now handles multiple nested anon classes correctly
1046
1060
1047
1061
### Fixed
1048
- - Fixed bug #2497 : Sniff properties not set when referencing a sniff using relative paths or non-native slashes
1062
+ - Fixed bug [ #2497 ] : Sniff properties not set when referencing a sniff using relative paths or non-native slashes
1049
1063
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1050
- - Fixed bug #2657 : Squiz.WhiteSpace.FunctionSpacing can remove spaces between comment and first/last method during auto-fixing
1064
+ - Fixed bug [ #2657 ] : Squiz.WhiteSpace.FunctionSpacing can remove spaces between comment and first/last method during auto-fixing
1051
1065
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1052
- - Fixed bug #2688 : Case statements not tokenized correctly when switch is contained within ternary
1053
- - Fixed bug #2698 : PHPCS throws errors determining auto report width when shell_exec is disabled
1066
+ - Fixed bug [ #2688 ] : Case statements not tokenized correctly when switch is contained within ternary
1067
+ - Fixed bug [ #2698 ] : PHPCS throws errors determining auto report width when shell_exec is disabled
1054
1068
- Thanks to [ Matthew Peveler] [ @MasterOdin ] for the patch
1055
- - Fixed bug #2730 : PSR12.ControlStructures.ControlStructureSpacing does not ignore comments between conditions
1069
+ - Fixed bug [ #2730 ] : PSR12.ControlStructures.ControlStructureSpacing does not ignore comments between conditions
1056
1070
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1057
- - Fixed bug #2732 : PSR12.Files.FileHeader misidentifies file header in mixed content file
1058
- - Fixed bug #2745 : AbstractArraySniff wrong indices when mixed coalesce and ternary values
1071
+ - Fixed bug [ #2732 ] : PSR12.Files.FileHeader misidentifies file header in mixed content file
1072
+ - Fixed bug [ #2745 ] : AbstractArraySniff wrong indices when mixed coalesce and ternary values
1059
1073
- Thanks to [ Michał Bundyra] [ @michalbundyra ] for the patch
1060
- - Fixed bug #2748 : Wrong end of statement for fn closures
1074
+ - Fixed bug [ #2748 ] : Wrong end of statement for fn closures
1061
1075
- Thanks to [ Michał Bundyra] [ @michalbundyra ] for the patch
1062
- - Fixed bug #2751 : Autoload relative paths first to avoid confusion with files from the global include path
1076
+ - Fixed bug [ #2751 ] : Autoload relative paths first to avoid confusion with files from the global include path
1063
1077
- Thanks to [ Klaus Purer] [ @klausi ] for the patch
1064
- - Fixed bug #2763 : PSR12 standard reports errors for multi-line FOR definitions
1065
- - Fixed bug #2768 : Generic.Files.LineLength false positive for non-breakable strings at exactly the soft limit
1078
+ - Fixed bug [ #2763 ] : PSR12 standard reports errors for multi-line FOR definitions
1079
+ - Fixed bug [ #2768 ] : Generic.Files.LineLength false positive for non-breakable strings at exactly the soft limit
1066
1080
- Thanks to [ Alex Miles] [ @ghostal ] for the patch
1067
- - Fixed bug #2773 : PSR2.Methods.FunctionCallSignature false positive when arrow function has array return type
1068
- - Fixed bug #2790 : PSR12.Traits.UseDeclaration ignores block comments
1081
+ - Fixed bug [ #2773 ] : PSR2.Methods.FunctionCallSignature false positive when arrow function has array return type
1082
+ - Fixed bug [ #2790 ] : PSR12.Traits.UseDeclaration ignores block comments
1069
1083
- Thanks to [ Vincent Langlet] [ @VincentLanglet ] for the patch
1070
- - Fixed bug #2791 : PSR12.Functions.NullableTypeDeclaration false positive when ternary operator used with instanceof
1071
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1072
- - Fixed bug #2802 : Can't specify a report file path using the tilde shortcut
1073
- - Fixed bug #2804 : PHP4-style typed properties not tokenized correctly
1074
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1075
- - Fixed bug #2805 : Undefined Offset notice during live coding of arrow functions
1076
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1077
- - Fixed bug #2843 : Tokenizer does not support alternative syntax for declare statements
1078
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1084
+ - Fixed bug [ #2791 ] : PSR12.Functions.NullableTypeDeclaration false positive when ternary operator used with instanceof
1085
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1086
+ - Fixed bug [ #2802 ] : Can't specify a report file path using the tilde shortcut
1087
+ - Fixed bug [ #2804 ] : PHP4-style typed properties not tokenized correctly
1088
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1089
+ - Fixed bug [ #2805 ] : Undefined Offset notice during live coding of arrow functions
1090
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1091
+ - Fixed bug [ #2843 ] : Tokenizer does not support alternative syntax for declare statements
1092
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1093
+
1094
+ [ #2497 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2497
1095
+ [ #2657 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2657
1096
+ [ #2688 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2688
1097
+ [ #2698 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2698
1098
+ [ #2730 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2730
1099
+ [ #2732 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2732
1100
+ [ #2745 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2745
1101
+ [ #2748 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2748
1102
+ [ #2751 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2751
1103
+ [ #2763 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2763
1104
+ [ #2768 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2768
1105
+ [ #2773 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2773
1106
+ [ #2790 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2790
1107
+ [ #2791 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2791
1108
+ [ #2802 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2802
1109
+ [ #2804 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2804
1110
+ [ #2805 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2805
1111
+ [ #2843 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2843
1079
1112
1080
1113
## [ 3.5.3] - 2019-12-04
1081
1114
### Changed
0 commit comments