@@ -1117,7 +1117,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
1117
1117
- The double arrow becomes the scope opener, and uses a new T_FN_ARROW token type
1118
1118
- The token after the statement (normally a semicolon) becomes the scope closer
1119
1119
- The token is also associated with the opening and closing parenthesis of the statement
1120
- - Any functions named "fn" will cause have a T_FN token for the function name, but have no scope information
1120
+ - Any functions named "fn" will have a T_FN token for the function name, but have no scope information
1121
1121
- Thanks to [ Michał Bundyra] [ @michalbundyra ] for the help with this change
1122
1122
- PHP 7.4 numeric separators are now tokenized in the same way when using older PHP versions
1123
1123
- Previously, a number like 1_000 would tokenize as T_LNUMBER (1), T_STRING (_ 000)
@@ -1153,24 +1153,34 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
1153
1153
- Thanks to [ Michał Bundyra] [ @michalbundyra ] for the patch
1154
1154
1155
1155
### Fixed
1156
- - Fixed bug #2586 : Generic.WhiteSpace.ScopeIndent false positives when indenting open tags at a non tab-stop
1157
- - Fixed bug #2638 : Squiz.CSS.DuplicateClassDefinitionSniff sees comments as part of the class name
1156
+ - Fixed bug [ #2586 ] : Generic.WhiteSpace.ScopeIndent false positives when indenting open tags at a non tab-stop
1157
+ - Fixed bug [ #2638 ] : Squiz.CSS.DuplicateClassDefinitionSniff sees comments as part of the class name
1158
1158
- Thanks to [ Raphael Horber] [ @rhorber ] for the patch
1159
- - Fixed bug #2640 : Squiz.WhiteSpace.OperatorSpacing false positives for some negation operators
1159
+ - Fixed bug [ #2640 ] : Squiz.WhiteSpace.OperatorSpacing false positives for some negation operators
1160
1160
- Thanks to [ Jakub Chábek] [ @grongor ] and [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1161
- - Fixed bug #2674 : Squiz.Functions.FunctionDeclarationArgumentSpacing prints wrong argument name in error message
1162
- - Fixed bug #2676 : PSR12.Files.FileHeader locks up when file ends with multiple inline comments
1163
- - Fixed bug #2678 : PSR12.Classes.AnonClassDeclaration incorrectly enforcing that closing brace be on a line by itself
1164
- - Fixed bug #2685 : File::getMethodParameters() setting typeHintEndToken for vars with no type hint
1161
+ - Fixed bug [ #2674 ] : Squiz.Functions.FunctionDeclarationArgumentSpacing prints wrong argument name in error message
1162
+ - Fixed bug [ #2676 ] : PSR12.Files.FileHeader locks up when file ends with multiple inline comments
1163
+ - Fixed bug [ #2678 ] : PSR12.Classes.AnonClassDeclaration incorrectly enforcing that closing brace be on a line by itself
1164
+ - Fixed bug [ #2685 ] : File::getMethodParameters() setting typeHintEndToken for vars with no type hint
1165
1165
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1166
- - Fixed bug #2694 : AbstractArraySniff produces invalid indices when using ternary operator
1166
+ - Fixed bug [ #2694 ] : AbstractArraySniff produces invalid indices when using ternary operator
1167
1167
- Thanks to [ Michał Bundyra] [ @michalbundyra ] for the patch
1168
- - Fixed bug #2702 : Generic.WhiteSpace.ScopeIndent false positive when using ternary operator with short arrays
1168
+ - Fixed bug [ #2702 ] : Generic.WhiteSpace.ScopeIndent false positive when using ternary operator with short arrays
1169
+
1170
+ [ #2586 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2586
1171
+ [ #2638 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2638
1172
+ [ #2640 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2640
1173
+ [ #2674 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2674
1174
+ [ #2676 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2676
1175
+ [ #2678 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2678
1176
+ [ #2685 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2685
1177
+ [ #2694 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2694
1178
+ [ #2702 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2702
1169
1179
1170
1180
## [ 3.5.2] - 2019-10-28
1171
1181
### Changed
1172
1182
- Generic.ControlStructures.DisallowYodaConditions now returns less false positives
1173
- - False positives were being returned for array comparisions , or when performing some function calls
1183
+ - False positives were being returned for array comparisons , or when performing some function calls
1174
1184
- Squiz.WhiteSpace.SemicolonSpacing.Incorrect error message now escapes newlines and tabs
1175
1185
- Provides a clearer error message as whitespace is now visible
1176
1186
- Also allows for better output for report types such as CSV and XML
@@ -1179,13 +1189,20 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
1179
1189
- Thanks to [ Craig Duncan] [ @duncan3dc ] for the patch
1180
1190
1181
1191
### Fixed
1182
- - Fixed bug #2654 : Incorrect indentation for arguments of multiline function calls
1183
- - Fixed bug #2656 : Squiz.WhiteSpace.MemberVarSpacing removes comments before first member var during auto fixing
1184
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1185
- - Fixed bug #2663 : Generic.NamingConventions.ConstructorName complains about old constructor in interfaces
1186
- - Fixed bug #2664 : PSR12.Files.OpenTag incorrectly identifies PHP file with only an opening tag
1187
- - Fixed bug #2665 : PSR12.Files.ImportStatement should not apply to traits
1188
- - Fixed bug #2673 : PSR12.Traits.UseDeclaration does not allow comments or blank lines between use statements
1192
+ - Fixed bug [ #2654 ] : Incorrect indentation for arguments of multiline function calls
1193
+ - Fixed bug [ #2656 ] : Squiz.WhiteSpace.MemberVarSpacing removes comments before first member var during auto fixing
1194
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1195
+ - Fixed bug [ #2663 ] : Generic.NamingConventions.ConstructorName complains about old constructor in interfaces
1196
+ - Fixed bug [ #2664 ] : PSR12.Files.OpenTag incorrectly identifies PHP file with only an opening tag
1197
+ - Fixed bug [ #2665 ] : PSR12.Files.ImportStatement should not apply to traits
1198
+ - Fixed bug [ #2673 ] : PSR12.Traits.UseDeclaration does not allow comments or blank lines between use statements
1199
+
1200
+ [ #2654 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2654
1201
+ [ #2656 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2656
1202
+ [ #2663 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2663
1203
+ [ #2664 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2664
1204
+ [ #2665 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2665
1205
+ [ #2673 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2673
1189
1206
1190
1207
## [ 3.5.1] - 2019-10-17
1191
1208
### Changed
0 commit comments