@@ -3464,7 +3464,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3464
3464
- Anonymous classes are now tokenized as T_ANON_CLASS and ignored by normal class sniffs
3465
3465
- Added support for PHP 7 function return type declarations
3466
3466
- Return types are now tokenized as T_RETURN_TYPE
3467
- - Fixed tokenizing of the XOR operator, which was incorrectly identified as a power operator (bug #765 )
3467
+ - Fixed tokenizing of the XOR operator, which was incorrectly identified as a power operator (bug [ #765 ] )
3468
3468
- The T_POWER token has been removed and replaced by the T_BITWISE_XOR token
3469
3469
- The PHP-supplied T_POW token has been replicated for PHP versions before 5.6
3470
3470
- Traits are now tokenized in PHP versions before 5.4 to make testing easier
@@ -3484,39 +3484,64 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3484
3484
- Generic InlineControlStructureSniff now correctly fixes ELSEIF statements
3485
3485
3486
3486
### Fixed
3487
- - Fixed bug #601 : Expected type hint int[ ] ; found array in Squiz FunctionCommentSniff
3487
+ - Fixed bug [ #601 ] : Expected type hint int[ ] ; found array in Squiz FunctionCommentSniff
3488
3488
- Thanks to [ Scato Eggen] [ @scato ] for the patch
3489
- - Fixed bug #625 : Consider working around T_HASHBANG in HHVM 3.5.x and 3.6.x
3489
+ - Fixed bug [ #625 ] : Consider working around T_HASHBANG in HHVM 3.5.x and 3.6.x
3490
3490
- Thanks to [ Kunal Mehta] [ @legoktm ] for the patch
3491
- - Fixed bug #692 : Comment tokenizer can break when using mbstring function overloading
3492
- - Fixed bug #694 : Long sniff codes can cause PHP warnings in source report when showing error codes
3493
- - Fixed bug #698 : PSR2.Methods.FunctionCallSignature.Indent forces exact indent of ternary operator parameters
3494
- - Fixed bug #704 : ScopeIndent can fail when an opening parenthesis is on a line by itself
3495
- - Fixed bug #707 : Squiz MethodScopeSniff doesn't handle nested functions
3496
- - Fixed bug #709 : Squiz.Sniffs.Whitespace.ScopeClosingBraceSniff marking indented endif in mixed inline HTML blocks
3497
- - Fixed bug #711 : Sniffing from STDIN shows Generic.Files.LowercasedFilename.NotFound error
3498
- - Fixed bug #714 : Fixes suppression of errors using docblocks
3491
+ - Fixed bug [ #692 ] : Comment tokenizer can break when using mbstring function overloading
3492
+ - Fixed bug [ #694 ] : Long sniff codes can cause PHP warnings in source report when showing error codes
3493
+ - Fixed bug [ #698 ] : PSR2.Methods.FunctionCallSignature.Indent forces exact indent of ternary operator parameters
3494
+ - Fixed bug [ #704 ] : ScopeIndent can fail when an opening parenthesis is on a line by itself
3495
+ - Fixed bug [ #707 ] : Squiz MethodScopeSniff doesn't handle nested functions
3496
+ - Fixed bug [ #709 ] : Squiz.Sniffs.Whitespace.ScopeClosingBraceSniff marking indented endif in mixed inline HTML blocks
3497
+ - Fixed bug [ #711 ] : Sniffing from STDIN shows Generic.Files.LowercasedFilename.NotFound error
3498
+ - Fixed bug [ #714 ] : Fixes suppression of errors using docblocks
3499
3499
- Thanks to [ Andrzej Karmazyn] [ @akarmazyn ] for the patch
3500
- - Fixed bug #716 : JSON report is invalid when messages contain newlines or tabs
3500
+ - Fixed bug [ #716 ] : JSON report is invalid when messages contain newlines or tabs
3501
3501
- Thanks to [ Pieter Frenssen] [ @pfrenssen ] for the patch
3502
- - Fixed bug #723 : ScopeIndent can fail when multiple array closers are on the same line
3503
- - Fixed bug #730 : ScopeIndent can fail when a short array opening square bracket is on a line by itself
3504
- - Fixed bug #732 : PHP Notice if @package name is made up of all invalid characters
3502
+ - Fixed bug [ #723 ] : ScopeIndent can fail when multiple array closers are on the same line
3503
+ - Fixed bug [ #730 ] : ScopeIndent can fail when a short array opening square bracket is on a line by itself
3504
+ - Fixed bug [ #732 ] : PHP Notice if @package name is made up of all invalid characters
3505
3505
- Adds new error code PEAR.Commenting.FileComment.InvalidPackageValue
3506
- - Fixed bug #748 : Auto fix for Squiz.Commenting.BlockComment.WrongEnd is incorrect
3506
+ - Fixed bug [ #748 ] : Auto fix for Squiz.Commenting.BlockComment.WrongEnd is incorrect
3507
3507
- Thanks to [ J.D. Grimes] [ @JDGrimes ] for the patch
3508
- - Fixed bug #753 : PSR2 standard shouldn't require space after USE block when next code is a closing tag
3509
- - Fixed bug #768 : PEAR FunctionCallSignature sniff forbids comments after opening parenthesis of a multiline call
3510
- - Fixed bug #769 : Incorrect detection of variable reference operator when used with short array syntax
3508
+ - Fixed bug [ #753 ] : PSR2 standard shouldn't require space after USE block when next code is a closing tag
3509
+ - Fixed bug [ #768 ] : PEAR FunctionCallSignature sniff forbids comments after opening parenthesis of a multiline call
3510
+ - Fixed bug [ #769 ] : Incorrect detection of variable reference operator when used with short array syntax
3511
3511
- Thanks to [ Klaus Purer] [ @klausi ] for the patch
3512
- - Fixed bug #772 : Syntax error when using PHPCBF on alternative style foreach loops
3513
- - Fixed bug #773 : Syntax error when stripping trailing PHP close tag and previous statement has no semicolon
3514
- - Fixed bug #778 : PHPCBF creates invalid PHP for inline FOREACH containing multiple control structures
3515
- - Fixed bug #781 : Incorrect checking for PHP7 return types on multi-line function declarations
3516
- - Fixed bug #782 : Conditional function declarations cause fixing conflicts in Squiz standard
3512
+ - Fixed bug [ #772 ] : Syntax error when using PHPCBF on alternative style foreach loops
3513
+ - Fixed bug [ #773 ] : Syntax error when stripping trailing PHP close tag and previous statement has no semicolon
3514
+ - Fixed bug [ #778 ] : PHPCBF creates invalid PHP for inline FOREACH containing multiple control structures
3515
+ - Fixed bug [ #781 ] : Incorrect checking for PHP7 return types on multi-line function declarations
3516
+ - Fixed bug [ #782 ] : Conditional function declarations cause fixing conflicts in Squiz standard
3517
3517
- Squiz.ControlStructures.ControlSignature no longer enforces a single newline after open brace
3518
3518
- Squiz.WhiteSpace.ControlStructureSpacing can be used to check spacing at the start/end of control structures
3519
3519
3520
+ [ #601 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/601
3521
+ [ #625 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/625
3522
+ [ #692 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/692
3523
+ [ #694 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/694
3524
+ [ #698 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/698
3525
+ [ #704 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/704
3526
+ [ #707 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/707
3527
+ [ #709 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/709
3528
+ [ #711 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/711
3529
+ [ #714 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/714
3530
+ [ #716 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/716
3531
+ [ #723 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/723
3532
+ [ #730 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/730
3533
+ [ #732 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/732
3534
+ [ #748 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/748
3535
+ [ #753 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/753
3536
+ [ #765 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/765
3537
+ [ #768 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/768
3538
+ [ #769 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/769
3539
+ [ #772 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/772
3540
+ [ #773 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/773
3541
+ [ #778 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/778
3542
+ [ #781 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/781
3543
+ [ #782 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/782
3544
+
3520
3545
## [ 2.3.4] - 2015-09-09
3521
3546
### Changed
3522
3547
- JSON report format now includes the fixable status for each error message and the total number of fixable errors
0 commit comments