@@ -2825,7 +2825,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2825
2825
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2826
2826
- PEAR.Commenting.ClassComment now supports checking of traits as well as classes and interfaces
2827
2827
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2828
- - Squiz.Commenting.FunctionCommentThrowTag now supports re-throwing exceptions (request #946 )
2828
+ - Squiz.Commenting.FunctionCommentThrowTag now supports re-throwing exceptions (request [ #946 ] )
2829
2829
- Thanks to [ Samuel Levy] [ @samlev ] for the patch
2830
2830
- Squiz.PHP.DisallowMultipleAssignments now ignores PHP4-style member var assignments
2831
2831
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
@@ -2836,20 +2836,33 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2836
2836
- Added missing error codes for a couple of sniffs so they can now be customised as normal
2837
2837
2838
2838
### Fixed
2839
- - Fixed bug #1266 : PEAR.WhiteSpace.ScopeClosingBrace can throw an error while fixing mixed PHP/HTML
2840
- - Fixed bug #1364 : Yield From values are not recognised as returned values in Squiz FunctionComment sniff
2841
- - Fixed bug #1373 : Error in tab expansion results in white-space of incorrect size
2839
+ - Fixed bug [ #1266 ] : PEAR.WhiteSpace.ScopeClosingBrace can throw an error while fixing mixed PHP/HTML
2840
+ - Fixed bug [ #1364 ] : Yield From values are not recognised as returned values in Squiz FunctionComment sniff
2841
+ - Fixed bug [ #1373 ] : Error in tab expansion results in white-space of incorrect size
2842
2842
- Thanks to [ Mark Clements] [ @MarkMaldaba ] for the patch
2843
- - Fixed bug #1381 : Tokenizer: dereferencing incorrectly identified as short array
2844
- - Fixed bug #1387 : Squiz.ControlStructures.ControlSignature does not handle alt syntax when checking space after closing brace
2845
- - Fixed bug #1392 : Scope indent calculated incorrectly when using array destructuring
2846
- - Fixed bug #1394 : integer type hints appearing as TypeHintMissing instead of ScalarTypeHintMissing
2843
+ - Fixed bug [ #1381 ] : Tokenizer: dereferencing incorrectly identified as short array
2844
+ - Fixed bug [ #1387 ] : Squiz.ControlStructures.ControlSignature does not handle alt syntax when checking space after closing brace
2845
+ - Fixed bug [ #1392 ] : Scope indent calculated incorrectly when using array destructuring
2846
+ - Fixed bug [ #1394 ] : integer type hints appearing as TypeHintMissing instead of ScalarTypeHintMissing
2847
2847
- PHP 7 type hints were also being shown when run under PHP 5 in some cases
2848
- - Fixed bug #1405 : Squiz.WhiteSpace.ScopeClosingBrace fails to fix closing brace within indented PHP tags
2849
- - Fixed bug #1421 : Ternaries used in constant scalar expression for param default misidentified by tokenizer
2850
- - Fixed bug #1431 : PHPCBF can't fix short open tags when they are not followed by a space
2848
+ - Fixed bug [ #1405 ] : Squiz.WhiteSpace.ScopeClosingBrace fails to fix closing brace within indented PHP tags
2849
+ - Fixed bug [ #1421 ] : Ternaries used in constant scalar expression for param default misidentified by tokenizer
2850
+ - Fixed bug [ #1431 ] : PHPCBF can't fix short open tags when they are not followed by a space
2851
2851
- Thanks to [ Gonçalo Queirós] [ @ghunti ] for the patch
2852
- - Fixed bug #1432 : PHPCBF can make invalid fixes to inline JS control structures that make use of JS objects
2852
+ - Fixed bug [ #1432 ] : PHPCBF can make invalid fixes to inline JS control structures that make use of JS objects
2853
+
2854
+ [ #946 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/946
2855
+ [ #1266 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1266
2856
+ [ #1364 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1364
2857
+ [ #1373 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1373
2858
+ [ #1381 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1381
2859
+ [ #1387 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1387
2860
+ [ #1392 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1392
2861
+ [ #1394 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1394
2862
+ [ #1405 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1405
2863
+ [ #1421 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1421
2864
+ [ #1431 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1431
2865
+ [ #1432 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1432
2853
2866
2854
2867
## [ 2.8.1] - 2017-03-02
2855
2868
### Security
@@ -2887,15 +2900,22 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2887
2900
- Squiz.ControlStructures.InlineIfDeclaration is now able to fix the spacing errors it reports
2888
2901
2889
2902
### Fixed
2890
- - Fixed bug #1340 : STDIN file contents not being populated in some cases
2903
+ - Fixed bug [ #1340 ] : STDIN file contents not being populated in some cases
2891
2904
- Thanks to [ David Biňovec] [ @david-binda ] for the patch
2892
- - Fixed bug #1344 : PEAR.Functions.FunctionCallSignatureSniff throws error for blank comment lines
2893
- - Fixed bug #1347 : PSR2.Methods.FunctionCallSignature strips some comments during fixing
2905
+ - Fixed bug [ #1344 ] : PEAR.Functions.FunctionCallSignatureSniff throws error for blank comment lines
2906
+ - Fixed bug [ #1347 ] : PSR2.Methods.FunctionCallSignature strips some comments during fixing
2894
2907
- Thanks to [ Algirdas Gurevicius] [ @uniquexor ] for the patch
2895
- - Fixed bug #1349 : Squiz.Strings.DoubleQuoteUsage.NotRequired message is badly formatted when string contains a CR newline char
2908
+ - Fixed bug [ #1349 ] : Squiz.Strings.DoubleQuoteUsage.NotRequired message is badly formatted when string contains a CR newline char
2896
2909
- Thanks to [ Algirdas Gurevicius] [ @uniquexor ] for the patch
2897
- - Fixed bug #1350 : Invalid Squiz.Formatting.OperatorBracket error when using namespaces
2898
- - Fixed bug #1369 : Empty line in multi-line function declaration cause infinite loop
2910
+ - Fixed bug [ #1350 ] : Invalid Squiz.Formatting.OperatorBracket error when using namespaces
2911
+ - Fixed bug [ #1369 ] : Empty line in multi-line function declaration cause infinite loop
2912
+
2913
+ [ #1340 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1340
2914
+ [ #1344 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1344
2915
+ [ #1347 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1347
2916
+ [ #1349 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1349
2917
+ [ #1350 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1350
2918
+ [ #1369 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1369
2899
2919
2900
2920
## [ 2.8.0] - 2017-02-02
2901
2921
### Changed
@@ -2911,13 +2931,13 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2911
2931
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2912
2932
- The getMethodParameters() method now supports closures
2913
2933
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2914
- - Added more guard code for JS files with syntax errors (request #1271 and request #1272 )
2915
- - Added more guard code for CSS files with syntax errors (request #1304 )
2934
+ - Added more guard code for JS files with syntax errors (request [ #1271 ] and request [ #1272 ] )
2935
+ - Added more guard code for CSS files with syntax errors (request [ #1304 ] )
2916
2936
- PEAR.Commenting.FunctionComment fixers now correctly handle multi-line param comments
2917
2937
- AbstractVariableSniff now supports anonymous classes
2918
2938
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2919
2939
- Generic.NamingConventions.ConstructorName and PEAR.NamingConventions.ValidVariable now support anonymous classes
2920
- - Generic.NamingConventions.CamelCapsFunctionName and PEAR.NamingConventions.ValidFunctionName now support anonymous classes
2940
+ - Generic.NamingConventions.CamelCapsFunctionName and PEAR.NamingConventions.ValidFunctionName now support anonymous classes
2921
2941
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2922
2942
- Generic.CodeAnalysis.UnusedFunctionParameter and PEAR.Functions.ValidDefaultValue now support closures
2923
2943
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
@@ -2932,30 +2952,52 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2932
2952
- Thanks to [ Algirdas Gurevicius] [ @uniquexor ] for the patch
2933
2953
2934
2954
### Fixed
2935
- - Fixed bug #1230 : JS tokeniser incorrectly tokenises bitwise shifts as comparison
2955
+ - Fixed bug [ #1230 ] : JS tokeniser incorrectly tokenises bitwise shifts as comparison
2936
2956
- Thanks to [ Ryan McCue] [ @rmccue ] for the patch
2937
- - Fixed bug #1237 : Uninitialized string offset in PHP Tokenizer on PHP 5.2
2938
- - Fixed bug #1239 : Warning when static method name is 'default'
2939
- - Fixed bug #1240 : False positive for function names starting with triple underscore
2957
+ - Fixed bug [ #1237 ] : Uninitialized string offset in PHP Tokenizer on PHP 5.2
2958
+ - Fixed bug [ #1239 ] : Warning when static method name is 'default'
2959
+ - Fixed bug [ #1240 ] : False positive for function names starting with triple underscore
2940
2960
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2941
- - Fixed bug #1245 : SELF is not recognised as T_SELF token in: return new self
2942
- - Fixed bug #1246 : A mix of USE statements with and without braces can cause the tokenizer to mismatch brace tokens
2961
+ - Fixed bug [ #1245 ] : SELF is not recognised as T_SELF token in: return new self
2962
+ - Fixed bug [ #1246 ] : A mix of USE statements with and without braces can cause the tokenizer to mismatch brace tokens
2943
2963
- Thanks to [ Michał Bundyra] [ @michalbundyra ] for the patch
2944
- - Fixed bug #1249 : GitBlame report requires a .git directory
2945
- - Fixed bug #1252 : Squiz.Strings.ConcatenationSpacing fix creates syntax error when joining a number to a string
2946
- - Fixed bug #1253 : Generic.ControlStructures.InlineControlStructure fix creates syntax error fixing if-try/catch
2947
- - Fixed bug #1255 : Inconsistent indentation check results when ELSE on new line
2948
- - Fixed bug #1257 : Double dash in CSS class name can lead to "Named colours are forbidden" false positives
2949
- - Fixed bug #1260 : Syntax errors not being shown when error_prepend_string is set
2950
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2951
- - Fixed bug #1264 : Array return type hint is sometimes detected as T_ARRAY_HINT instead of T_RETURN_TYPE
2964
+ - Fixed bug [ #1249 ] : GitBlame report requires a .git directory
2965
+ - Fixed bug [ #1252 ] : Squiz.Strings.ConcatenationSpacing fix creates syntax error when joining a number to a string
2966
+ - Fixed bug [ #1253 ] : Generic.ControlStructures.InlineControlStructure fix creates syntax error fixing if-try/catch
2967
+ - Fixed bug [ #1255 ] : Inconsistent indentation check results when ELSE on new line
2968
+ - Fixed bug [ #1257 ] : Double dash in CSS class name can lead to "Named colours are forbidden" false positives
2969
+ - Fixed bug [ #1260 ] : Syntax errors not being shown when error_prepend_string is set
2970
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2971
+ - Fixed bug [ #1264 ] : Array return type hint is sometimes detected as T_ARRAY_HINT instead of T_RETURN_TYPE
2952
2972
- Thanks to [ Jaroslav Hanslík] [ @kukulich ] for the patch
2953
- - Fixed bug #1265 : ES6 arrow function raises unexpected operator spacing errors
2954
- - Fixed bug #1267 : Fixer incorrectly handles filepaths with repeated dir names
2973
+ - Fixed bug [ #1265 ] : ES6 arrow function raises unexpected operator spacing errors
2974
+ - Fixed bug [ #1267 ] : Fixer incorrectly handles filepaths with repeated dir names
2955
2975
- Thanks to [ Sergey Ovchinnikov] [ @orx0r ] for the patch
2956
- - Fixed bug #1276 : Commenting.FunctionComment.InvalidReturnVoid conditional issue with anonymous classes
2957
- - Fixed bug #1277 : Squiz.PHP.DisallowMultipleAssignments.Found error when var assignment is on the same line as an open tag
2958
- - Fixed bug #1284 : Squiz.Arrays.ArrayBracketSpacing.SpaceBeforeBracket false positive match for short list syntax
2976
+ - Fixed bug [ #1276 ] : Commenting.FunctionComment.InvalidReturnVoid conditional issue with anonymous classes
2977
+ - Fixed bug [ #1277 ] : Squiz.PHP.DisallowMultipleAssignments.Found error when var assignment is on the same line as an open tag
2978
+ - Fixed bug [ #1284 ] : Squiz.Arrays.ArrayBracketSpacing.SpaceBeforeBracket false positive match for short list syntax
2979
+
2980
+ [ #1230 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1230
2981
+ [ #1237 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1237
2982
+ [ #1239 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1239
2983
+ [ #1240 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1240
2984
+ [ #1245 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1245
2985
+ [ #1246 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1246
2986
+ [ #1249 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1249
2987
+ [ #1252 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1252
2988
+ [ #1253 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1253
2989
+ [ #1255 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1255
2990
+ [ #1257 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1257
2991
+ [ #1260 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1260
2992
+ [ #1264 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1264
2993
+ [ #1265 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1265
2994
+ [ #1267 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1267
2995
+ [ #1271 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1271
2996
+ [ #1272 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1272
2997
+ [ #1276 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1276
2998
+ [ #1277 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1277
2999
+ [ #1284 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1284
3000
+ [ #1304 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1304
2959
3001
2960
3002
## [ 2.7.1] - 2016-11-30
2961
3003
### Changed
0 commit comments