@@ -2927,7 +2927,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2927
2927
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2928
2928
- PEAR.Commenting.ClassComment now supports checking of traits as well as classes and interfaces
2929
2929
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2930
- - Squiz.Commenting.FunctionCommentThrowTag now supports re-throwing exceptions (request #946)
2930
+ - Squiz.Commenting.FunctionCommentThrowTag now supports re-throwing exceptions (request [ #946] )
2931
2931
- Thanks to [Samuel Levy][@samlev] for the patch
2932
2932
- Squiz.PHP.DisallowMultipleAssignments now ignores PHP4-style member var assignments
2933
2933
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
@@ -2938,20 +2938,33 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2938
2938
- Added missing error codes for a couple of sniffs so they can now be customised as normal
2939
2939
2940
2940
### Fixed
2941
- - Fixed bug #1266 : PEAR.WhiteSpace.ScopeClosingBrace can throw an error while fixing mixed PHP/HTML
2942
- - Fixed bug #1364 : Yield From values are not recognised as returned values in Squiz FunctionComment sniff
2943
- - Fixed bug #1373 : Error in tab expansion results in white-space of incorrect size
2941
+ - Fixed bug [ #1266] : PEAR.WhiteSpace.ScopeClosingBrace can throw an error while fixing mixed PHP/HTML
2942
+ - Fixed bug [ #1364] : Yield From values are not recognised as returned values in Squiz FunctionComment sniff
2943
+ - Fixed bug [ #1373] : Error in tab expansion results in white-space of incorrect size
2944
2944
- Thanks to [Mark Clements][@MarkMaldaba] for the patch
2945
- - Fixed bug #1381 : Tokenizer: dereferencing incorrectly identified as short array
2946
- - Fixed bug #1387 : Squiz.ControlStructures.ControlSignature does not handle alt syntax when checking space after closing brace
2947
- - Fixed bug #1392 : Scope indent calculated incorrectly when using array destructuring
2948
- - Fixed bug #1394 : integer type hints appearing as TypeHintMissing instead of ScalarTypeHintMissing
2945
+ - Fixed bug [ #1381] : Tokenizer: dereferencing incorrectly identified as short array
2946
+ - Fixed bug [ #1387] : Squiz.ControlStructures.ControlSignature does not handle alt syntax when checking space after closing brace
2947
+ - Fixed bug [ #1392] : Scope indent calculated incorrectly when using array destructuring
2948
+ - Fixed bug [ #1394] : integer type hints appearing as TypeHintMissing instead of ScalarTypeHintMissing
2949
2949
- PHP 7 type hints were also being shown when run under PHP 5 in some cases
2950
- - Fixed bug #1405 : Squiz.WhiteSpace.ScopeClosingBrace fails to fix closing brace within indented PHP tags
2951
- - Fixed bug #1421 : Ternaries used in constant scalar expression for param default misidentified by tokenizer
2952
- - Fixed bug #1431 : PHPCBF can't fix short open tags when they are not followed by a space
2950
+ - Fixed bug [ #1405] : Squiz.WhiteSpace.ScopeClosingBrace fails to fix closing brace within indented PHP tags
2951
+ - Fixed bug [ #1421] : Ternaries used in constant scalar expression for param default misidentified by tokenizer
2952
+ - Fixed bug [ #1431] : PHPCBF can't fix short open tags when they are not followed by a space
2953
2953
- Thanks to [Gonçalo Queirós][@ghunti] for the patch
2954
- - Fixed bug #1432 : PHPCBF can make invalid fixes to inline JS control structures that make use of JS objects
2954
+ - Fixed bug [#1432] : PHPCBF can make invalid fixes to inline JS control structures that make use of JS objects
2955
+
2956
+ [#946]: https://github.com/squizlabs/PHP_CodeSniffer/pull/946
2957
+ [#1266]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1266
2958
+ [#1364]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1364
2959
+ [#1373]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1373
2960
+ [#1381]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1381
2961
+ [#1387]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1387
2962
+ [#1392]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1392
2963
+ [#1394]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1394
2964
+ [#1405]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1405
2965
+ [#1421]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1421
2966
+ [#1431]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1431
2967
+ [#1432]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1432
2955
2968
2956
2969
## [2.8.1] - 2017-03-02
2957
2970
### Security
@@ -2989,15 +3002,22 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2989
3002
- Squiz.ControlStructures.InlineIfDeclaration is now able to fix the spacing errors it reports
2990
3003
2991
3004
### Fixed
2992
- - Fixed bug #1340 : STDIN file contents not being populated in some cases
3005
+ - Fixed bug [ #1340] : STDIN file contents not being populated in some cases
2993
3006
- Thanks to [David Biňovec][@david-binda] for the patch
2994
- - Fixed bug #1344 : PEAR.Functions.FunctionCallSignatureSniff throws error for blank comment lines
2995
- - Fixed bug #1347 : PSR2.Methods.FunctionCallSignature strips some comments during fixing
3007
+ - Fixed bug [ #1344] : PEAR.Functions.FunctionCallSignatureSniff throws error for blank comment lines
3008
+ - Fixed bug [ #1347] : PSR2.Methods.FunctionCallSignature strips some comments during fixing
2996
3009
- Thanks to [Algirdas Gurevicius][@uniquexor] for the patch
2997
- - Fixed bug #1349 : Squiz.Strings.DoubleQuoteUsage.NotRequired message is badly formatted when string contains a CR newline char
3010
+ - Fixed bug [ #1349] : Squiz.Strings.DoubleQuoteUsage.NotRequired message is badly formatted when string contains a CR newline char
2998
3011
- Thanks to [Algirdas Gurevicius][@uniquexor] for the patch
2999
- - Fixed bug #1350 : Invalid Squiz.Formatting.OperatorBracket error when using namespaces
3000
- - Fixed bug #1369 : Empty line in multi-line function declaration cause infinite loop
3012
+ - Fixed bug [#1350] : Invalid Squiz.Formatting.OperatorBracket error when using namespaces
3013
+ - Fixed bug [#1369] : Empty line in multi-line function declaration cause infinite loop
3014
+
3015
+ [#1340]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1340
3016
+ [#1344]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1344
3017
+ [#1347]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1347
3018
+ [#1349]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1349
3019
+ [#1350]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1350
3020
+ [#1369]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1369
3001
3021
3002
3022
## [2.8.0] - 2017-02-02
3003
3023
### Changed
@@ -3013,13 +3033,13 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3013
3033
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
3014
3034
- The getMethodParameters() method now supports closures
3015
3035
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
3016
- - Added more guard code for JS files with syntax errors (request #1271 and request #1272)
3017
- - Added more guard code for CSS files with syntax errors (request #1304)
3036
+ - Added more guard code for JS files with syntax errors (request [ #1271] and request [ #1272] )
3037
+ - Added more guard code for CSS files with syntax errors (request [ #1304] )
3018
3038
- PEAR.Commenting.FunctionComment fixers now correctly handle multi-line param comments
3019
3039
- AbstractVariableSniff now supports anonymous classes
3020
3040
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
3021
3041
- Generic.NamingConventions.ConstructorName and PEAR.NamingConventions.ValidVariable now support anonymous classes
3022
- - Generic.NamingConventions.CamelCapsFunctionName and PEAR.NamingConventions.ValidFunctionName now support anonymous classes
3042
+ - Generic.NamingConventions.CamelCapsFunctionName and PEAR.NamingConventions.ValidFunctionName now support anonymous classes
3023
3043
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
3024
3044
- Generic.CodeAnalysis.UnusedFunctionParameter and PEAR.Functions.ValidDefaultValue now support closures
3025
3045
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
@@ -3034,30 +3054,52 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3034
3054
- Thanks to [Algirdas Gurevicius][@uniquexor] for the patch
3035
3055
3036
3056
### Fixed
3037
- - Fixed bug #1230 : JS tokeniser incorrectly tokenises bitwise shifts as comparison
3057
+ - Fixed bug [ #1230] : JS tokeniser incorrectly tokenises bitwise shifts as comparison
3038
3058
- Thanks to [Ryan McCue][@rmccue] for the patch
3039
- - Fixed bug #1237 : Uninitialized string offset in PHP Tokenizer on PHP 5.2
3040
- - Fixed bug #1239 : Warning when static method name is 'default'
3041
- - Fixed bug #1240 : False positive for function names starting with triple underscore
3059
+ - Fixed bug [ #1237] : Uninitialized string offset in PHP Tokenizer on PHP 5.2
3060
+ - Fixed bug [ #1239] : Warning when static method name is 'default'
3061
+ - Fixed bug [ #1240] : False positive for function names starting with triple underscore
3042
3062
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
3043
- - Fixed bug #1245 : SELF is not recognised as T_SELF token in: return new self
3044
- - Fixed bug #1246 : A mix of USE statements with and without braces can cause the tokenizer to mismatch brace tokens
3063
+ - Fixed bug [ #1245] : SELF is not recognised as T_SELF token in: return new self
3064
+ - Fixed bug [ #1246] : A mix of USE statements with and without braces can cause the tokenizer to mismatch brace tokens
3045
3065
- Thanks to [Michał Bundyra][@michalbundyra] for the patch
3046
- - Fixed bug #1249 : GitBlame report requires a .git directory
3047
- - Fixed bug #1252 : Squiz.Strings.ConcatenationSpacing fix creates syntax error when joining a number to a string
3048
- - Fixed bug #1253 : Generic.ControlStructures.InlineControlStructure fix creates syntax error fixing if-try/catch
3049
- - Fixed bug #1255 : Inconsistent indentation check results when ELSE on new line
3050
- - Fixed bug #1257 : Double dash in CSS class name can lead to "Named colours are forbidden" false positives
3051
- - Fixed bug #1260 : Syntax errors not being shown when error_prepend_string is set
3052
- - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
3053
- - Fixed bug #1264 : Array return type hint is sometimes detected as T_ARRAY_HINT instead of T_RETURN_TYPE
3066
+ - Fixed bug [ #1249] : GitBlame report requires a .git directory
3067
+ - Fixed bug [ #1252] : Squiz.Strings.ConcatenationSpacing fix creates syntax error when joining a number to a string
3068
+ - Fixed bug [ #1253] : Generic.ControlStructures.InlineControlStructure fix creates syntax error fixing if-try/catch
3069
+ - Fixed bug [ #1255] : Inconsistent indentation check results when ELSE on new line
3070
+ - Fixed bug [ #1257] : Double dash in CSS class name can lead to "Named colours are forbidden" false positives
3071
+ - Fixed bug [ #1260] : Syntax errors not being shown when error_prepend_string is set
3072
+ - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
3073
+ - Fixed bug [ #1264] : Array return type hint is sometimes detected as T_ARRAY_HINT instead of T_RETURN_TYPE
3054
3074
- Thanks to [Jaroslav Hanslík][@kukulich] for the patch
3055
- - Fixed bug #1265 : ES6 arrow function raises unexpected operator spacing errors
3056
- - Fixed bug #1267 : Fixer incorrectly handles filepaths with repeated dir names
3075
+ - Fixed bug [ #1265] : ES6 arrow function raises unexpected operator spacing errors
3076
+ - Fixed bug [ #1267] : Fixer incorrectly handles filepaths with repeated dir names
3057
3077
- Thanks to [Sergey Ovchinnikov][@orx0r] for the patch
3058
- - Fixed bug #1276 : Commenting.FunctionComment.InvalidReturnVoid conditional issue with anonymous classes
3059
- - Fixed bug #1277 : Squiz.PHP.DisallowMultipleAssignments.Found error when var assignment is on the same line as an open tag
3060
- - Fixed bug #1284 : Squiz.Arrays.ArrayBracketSpacing.SpaceBeforeBracket false positive match for short list syntax
3078
+ - Fixed bug [#1276] : Commenting.FunctionComment.InvalidReturnVoid conditional issue with anonymous classes
3079
+ - Fixed bug [#1277] : Squiz.PHP.DisallowMultipleAssignments.Found error when var assignment is on the same line as an open tag
3080
+ - Fixed bug [#1284] : Squiz.Arrays.ArrayBracketSpacing.SpaceBeforeBracket false positive match for short list syntax
3081
+
3082
+ [#1230]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1230
3083
+ [#1237]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1237
3084
+ [#1239]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1239
3085
+ [#1240]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1240
3086
+ [#1245]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1245
3087
+ [#1246]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1246
3088
+ [#1249]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1249
3089
+ [#1252]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1252
3090
+ [#1253]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1253
3091
+ [#1255]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1255
3092
+ [#1257]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1257
3093
+ [#1260]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1260
3094
+ [#1264]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1264
3095
+ [#1265]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1265
3096
+ [#1267]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1267
3097
+ [#1271]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1271
3098
+ [#1272]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1272
3099
+ [#1276]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1276
3100
+ [#1277]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1277
3101
+ [#1284]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1284
3102
+ [#1304]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1304
3061
3103
3062
3104
## [2.7.1] - 2016-11-30
3063
3105
### Changed
0 commit comments