@@ -14,11 +14,11 @@ http://pear.php.net/dtd/package-2.0.xsd">
14
14
15
15
<active >yes</active >
16
16
</lead >
17
- <date >2016-11-30 </date >
18
- <time >15:01 :00</time >
17
+ <date >2017-02-02 </date >
18
+ <time >14:23 :00</time >
19
19
<version >
20
- <release >2.7.2 </release >
21
- <api >2.7.2 </api >
20
+ <release >2.8.0 </release >
21
+ <api >2.8.0 </api >
22
22
</version >
23
23
<stability >
24
24
<release >stable</release >
@@ -2461,8 +2461,11 @@ http://pear.php.net/dtd/package-2.0.xsd">
2461
2461
<install as =" CodeSniffer/Core/IsCamelCapsTest.php" name =" tests/Core/IsCamelCapsTest.php" />
2462
2462
<install as =" CodeSniffer/Core/ErrorSuppressionTest.php" name =" tests/Core/ErrorSuppressionTest.php" />
2463
2463
<install as =" CodeSniffer/Core/File/FindExtendedClassNameTest.php" name =" tests/Core/File/FindExtendedClassNameTest.php" />
2464
+ <install as =" CodeSniffer/Core/File/FindExtendedClassNameTest.inc" name =" tests/Core/File/FindExtendedClassNameTest.inc" />
2464
2465
<install as =" CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.php" name =" tests/Core/File/FindImplementedInterfaceNamesTest.php" />
2466
+ <install as =" CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.inc" name =" tests/Core/File/FindImplementedInterfaceNamesTest.inc" />
2465
2467
<install as =" CodeSniffer/Core/File/GetMethodParametersTest.php" name =" tests/Core/File/GetMethodParametersTest.php" />
2468
+ <install as =" CodeSniffer/Core/File/GetMethodParametersTest.inc" name =" tests/Core/File/GetMethodParametersTest.inc" />
2466
2469
<install as =" CodeSniffer/Standards/AllSniffs.php" name =" tests/Standards/AllSniffs.php" />
2467
2470
<install as =" CodeSniffer/Standards/AbstractSniffUnitTest.php" name =" tests/Standards/AbstractSniffUnitTest.php" />
2468
2471
</filelist >
@@ -2480,15 +2483,87 @@ http://pear.php.net/dtd/package-2.0.xsd">
2480
2483
<install as =" CodeSniffer/Core/IsCamelCapsTest.php" name =" tests/Core/IsCamelCapsTest.php" />
2481
2484
<install as =" CodeSniffer/Core/ErrorSuppressionTest.php" name =" tests/Core/ErrorSuppressionTest.php" />
2482
2485
<install as =" CodeSniffer/Core/File/FindExtendedClassNameTest.php" name =" tests/Core/File/FindExtendedClassNameTest.php" />
2486
+ <install as =" CodeSniffer/Core/File/FindExtendedClassNameTest.inc" name =" tests/Core/File/FindExtendedClassNameTest.inc" />
2483
2487
<install as =" CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.php" name =" tests/Core/File/FindImplementedInterfaceNamesTest.php" />
2488
+ <install as =" CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.inc" name =" tests/Core/File/FindImplementedInterfaceNamesTest.inc" />
2484
2489
<install as =" CodeSniffer/Core/File/GetMethodParametersTest.php" name =" tests/Core/File/GetMethodParametersTest.php" />
2490
+ <install as =" CodeSniffer/Core/File/GetMethodParametersTest.inc" name =" tests/Core/File/GetMethodParametersTest.inc" />
2485
2491
<install as =" CodeSniffer/Standards/AllSniffs.php" name =" tests/Standards/AllSniffs.php" />
2486
2492
<install as =" CodeSniffer/Standards/AbstractSniffUnitTest.php" name =" tests/Standards/AbstractSniffUnitTest.php" />
2487
2493
<ignore name =" scripts/phpcs.bat" />
2488
2494
<ignore name =" scripts/phpcbf.bat" />
2489
2495
</filelist >
2490
2496
</phprelease >
2491
2497
<changelog >
2498
+ <release >
2499
+ <version >
2500
+ <release >2.8.0</release >
2501
+ <api >2.8.0</api >
2502
+ </version >
2503
+ <stability >
2504
+ <release >stable</release >
2505
+ <api >stable</api >
2506
+ </stability >
2507
+ <date >2017-02-02</date >
2508
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
2509
+ <notes >
2510
+ - The Internal.NoCodeFound error is no longer generated for content sourced from STDIN
2511
+ -- This should stop some Git hooks generating errors because PHPCS is trying to process the refs passed on STDIN
2512
+ - Squiz.Commenting.DocCommentAlignment now checks comments on class properties defined using the VAR keyword
2513
+ -- Thanks to Klaus Purer for the patch
2514
+ - The getMethodParameters() method now recognises "self" as a valid type hint
2515
+ -- The return array now contains a new "content" index containing the raw content of the param definition
2516
+ -- Thanks to Juliette Reinders Folmer for the patch
2517
+ - The getMethodParameters() method now supports nullable types
2518
+ -- The return array now contains a new "nullable_type" index set to true or false for each method param
2519
+ -- Thanks to Juliette Reinders Folmer for the patch
2520
+ - The getMethodParameters() method now supports closures
2521
+ -- Thanks to Juliette Reinders Folmer for the patch
2522
+ - Added more guard code for JS files with syntax errors (request #1271 and request #1272)
2523
+ - Added more guard code for CSS files with syntax errors (request #1304)
2524
+ - PEAR.Commenting.FunctionComment fixers now correctly handle multi-line param comments
2525
+ - AbstractVariableSniff now supports anonymous classes
2526
+ -- Thanks to Juliette Reinders Folmer for the patch
2527
+ - Generic.NamingConventions.ConstructorName and PEAR.NamingConventions.ValidVariable now support anonymous classes
2528
+ - Generic.NamingConventions.CamelCapsFunctionName and PEAR.NamingConventions.ValidFunctionName now support anonymous classes
2529
+ -- Thanks to Juliette Reinders Folmer for the patch
2530
+ - Generic.CodeAnalysis.UnusedFunctionParameter and PEAR.Functions.ValidDefaultValue now support closures
2531
+ -- Thanks to Juliette Reinders Folmer for the patch
2532
+ - PEAR.NamingConventions.ValidClassName and Squiz.Classes.ValidClassName now support traits
2533
+ -- Thanks to Juliette Reinders Folmer for the patch
2534
+ - Generic.Functions.FunctionCallArgumentSpacing now supports closures other PHP-provided functions
2535
+ -- Thanks to Algirdas Gurevicius for the patch
2536
+ - Fixed an error where a nullable type character was detected as an inline then token
2537
+ -- A new T_NULLABLE token has been added to represent the ? nullable type character
2538
+ -- Thanks to Jaroslav Hanslík for the patch
2539
+ - Squiz.WhiteSpace.SemicolonSpacing no longer removes comments while fixing the placement of semicolons
2540
+ -- Thanks to Algirdas Gurevicius for the patch
2541
+ - Fixed bug #1230 : JS tokeniser incorrectly tokenises bitwise shifts as comparison
2542
+ -- Thanks to Ryan McCue for the patch
2543
+ - Fixed bug #1237 : Uninitialized string offset in PHP Tokenizer on PHP 5.2
2544
+ - Fixed bug #1239 : Warning when static method name is 'default'
2545
+ - Fixed bug #1240 : False positive for function names starting with triple underscore
2546
+ -- Thanks to Juliette Reinders Folmer for the patch
2547
+ - Fixed bug #1245 : SELF is not recognised as T_SELF token in: return new self
2548
+ - Fixed bug #1246 : A mix of USE statements with and without braces can cause the tokenizer to mismatch brace tokens
2549
+ -- Thanks to Michał Bundyra for the patch
2550
+ - Fixed bug #1249 : GitBlame report requires a .git directory
2551
+ - Fixed bug #1252 : Squiz.Strings.ConcatenationSpacing fix creates syntax error when joining a number to a string
2552
+ - Fixed bug #1253 : Generic.ControlStructures.InlineControlStructure fix creates syntax error fixing if-try/catch
2553
+ - Fixed bug #1255 : Inconsistent indentation check results when ELSE on new line
2554
+ - Fixed bug #1257 : Double dash in CSS class name can lead to "Named colours are forbidden" false positives
2555
+ - Fixed bug #1260 : Syntax errors not being shown when error_prepend_string is set
2556
+ -- Thanks to Juliette Reinders Folmer for the patch
2557
+ - Fixed bug #1264 : Array return type hint is sometimes detected as T_ARRAY_HINT instead of T_RETURN_TYPE
2558
+ -- Thanks to Jaroslav Hanslík for the patch
2559
+ - Fixed bug #1265 : ES6 arrow function raises unexpected operator spacing errors
2560
+ - Fixed bug #1267 : Fixer incorrectly handles filepaths with repeated dir names
2561
+ -- Thanks to Sergey Ovchinnikov for the patch
2562
+ - Fixed bug #1276 : Commenting.FunctionComment.InvalidReturnVoid conditional issue with anonymous classes
2563
+ - Fixed bug #1277 : Squiz.PHP.DisallowMultipleAssignments.Found error when var assignment is on the same line as an open tag
2564
+ - Fixed bug #1284 : Squiz.Arrays.ArrayBracketSpacing.SpaceBeforeBracket false positive match for short list syntax
2565
+ </notes >
2566
+ </release >
2492
2567
<release >
2493
2568
<version >
2494
2569
<release >2.7.1</release >
0 commit comments