@@ -14,8 +14,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
1414 <email >gsherwood@squiz.net</email >
1515 <active >yes</active >
1616 </lead >
17- <date >2015-09-09 </date >
18- <time >10:15 :00</time >
17+ <date >2015-11-24 </date >
18+ <time >08:26 :00</time >
1919 <version >
2020 <release >2.4.0</release >
2121 <api >2.4.0</api >
@@ -2387,6 +2387,74 @@ http://pear.php.net/dtd/package-2.0.xsd">
23872387 </filelist >
23882388 </phprelease >
23892389 <changelog >
2390+ <release >
2391+ <version >
2392+ <release >2.4.0</release >
2393+ <api >2.4.0</api >
2394+ </version >
2395+ <stability >
2396+ <release >stable</release >
2397+ <api >stable</api >
2398+ </stability >
2399+ <date >2015-11-24</date >
2400+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
2401+ <notes >
2402+ - Added support for PHP 7 anonymous classes
2403+ - Anonymous classes are now tokenized as T_ANON_CLASS and ignored by normal class sniffs
2404+ - Added support for PHP 7 function return type declarations
2405+ - Return types are now tokenized as T_RETURN_TYPE
2406+ - Fixed tokenizing of the XOR operator, which was incorrectly identified as a power operator (bug #765)
2407+ - The T_POWER token has been removed and replaced by the T_BITWISE_XOR token
2408+ - The PHP-supplied T_POW token has been replicated for PHP versions before 5.6
2409+ - Traits are now tokenized in PHP versions before 5.4 to make testing easier
2410+ - Improved regular expression detection in JS files
2411+ - PEAR FunctionCallSignatureSniff now properly detects indents in more mixed HTML/PHP code blocks
2412+ - Full report now properly indents lines when newlines are found inside error messages
2413+ - Generating documentation without specifying a standard now uses the default standard instead
2414+ -- Thanks to Ken Guest for the patch
2415+ - Generic InlineControlStructureSniff now supports braceless do/while loops in JS
2416+ -- Thanks to Pieter Frenssen for the patch
2417+ - Added more guard code for function declarations with syntax errors
2418+ -- Thanks to Yun Young-jin for the patch
2419+ - Added more guard code for foreach declarations with syntax errors
2420+ -- Thanks to Johan de Ruijter for the patch
2421+ - Added more guard code for class declarations with syntax errors
2422+ - Squiz ArrayDeclarationSniff now has guard code for arrays with syntax errors
2423+ - Generic InlineControlStructureSniff now correctly fixes ELSEIF statements
2424+ - Fixed bug #601 : Expected type hint int[]; found array in Squiz FunctionCommentSniff
2425+ -- Thanks to Scato Eggen for the patch
2426+ - Fixed bug #625 : Consider working around T_HASHBANG in HHVM 3.5.x and 3.6.x
2427+ -- Thanks to Kunal Mehta for the patch
2428+ - Fixed bug #692 : Comment tokenizer can break when using mbstring function overloading
2429+ - Fixed bug #694 : Long sniff codes can cause PHP warnings in source report when showing error codes
2430+ - Fixed bug #698 : PSR2.Methods.FunctionCallSignature.Indent forces exact indent of ternary operator parameters
2431+ - Fixed bug #704 : ScopeIndent can fail when an opening parenthesis is on a line by itself
2432+ - Fixed bug #707 : Squiz MethodScopeSniff doesn't handle nested functions
2433+ - Fixed bug #709 : Squiz.Sniffs.Whitespace.ScopeClosingBraceSniff marking indented endif in mixed inline HTML blocks
2434+ - Fixed bug #711 : Sniffing from STDIN shows Generic.Files.LowercasedFilename.NotFound error
2435+ - Fixed bug #714 : Fixes suppression of errors using docblocks
2436+ -- Thanks to Andrzej Karmazyn for the patch
2437+ - Fixed bug #716 : JSON report is invalid when messages contain newlines or tabs
2438+ -- Thanks to Pieter Frenssen for the patch
2439+ - Fixed bug #723 : ScopeIndent can fail when multiple array closers are on the same line
2440+ - Fixed bug #730 : ScopeIndent can fail when a short array opening square bracket is on a line by itself
2441+ - Fixed bug #732 : PHP Notice if @package name is made up of all invalid characters
2442+ -- Adds new error code PEAR.Commenting.FileComment.InvalidPackageValue
2443+ - Fixed bug #748 : Auto fix for Squiz.Commenting.BlockComment.WrongEnd is incorrect
2444+ -- Thanks to J.D. Grimes for the patch
2445+ - Fixed bug #753 : PSR2 standard shouldn't require space after USE block when next code is a closing tag
2446+ - Fixed bug #768 : PEAR FunctionCallSignature sniff forbids comments after opening parenthesis of a multiline call
2447+ - Fixed bug #769 : Incorrect detection of variable reference operator when used with short array syntax
2448+ -- Thanks to Klaus Purer for the patch
2449+ - Fixed bug #772 : Syntax error when using PHPCBF on alternative style foreach loops
2450+ - Fixed bug #773 : Syntax error when stripping trailing PHP close tag and previous statement has no semicolon
2451+ - Fixed bug #778 : PHPCBF creates invalid PHP for inline FOREACH containing multiple control structures
2452+ - Fixed bug #781 : Incorrect checking for PHP7 return types on multi-line function declartions
2453+ - Fixed bug #782 : Conditional function declarations cause fixing conflicts in Squiz standard
2454+ -- Squiz.ControlStructures.ControlSignature no longer enforces a single newline after open brace
2455+ -- Squiz.WhiteSpace.ControlStructureSpacing can be used to checl spacing at the start/end of control structures
2456+ </notes >
2457+ </release >
23902458 <release >
23912459 <version >
23922460 <release >2.3.4</release >
0 commit comments