@@ -1389,7 +1389,9 @@ http://pear.php.net/dtd/package-2.0.xsd">
1389
1389
<file baseinstalldir =" PHP/CodeSniffer" name =" ScopeKeywordSpacingUnitTest.inc" role =" test" />
1390
1390
<file baseinstalldir =" PHP/CodeSniffer" name =" ScopeKeywordSpacingUnitTest.php" role =" test" />
1391
1391
<file baseinstalldir =" PHP/CodeSniffer" name =" SemicolonSpacingUnitTest.inc" role =" test" />
1392
+ <file baseinstalldir =" PHP/CodeSniffer" name =" SemicolonSpacingUnitTest.inc.fixed" role =" test" />
1392
1393
<file baseinstalldir =" PHP/CodeSniffer" name =" SemicolonSpacingUnitTest.js" role =" test" />
1394
+ <file baseinstalldir =" PHP/CodeSniffer" name =" SemicolonSpacingUnitTest.js.fixed" role =" test" />
1393
1395
<file baseinstalldir =" PHP/CodeSniffer" name =" SemicolonSpacingUnitTest.php" role =" test" />
1394
1396
<file baseinstalldir =" PHP/CodeSniffer" name =" SuperfluousWhitespaceUnitTest.1.css" role =" test" />
1395
1397
<file baseinstalldir =" PHP/CodeSniffer" name =" SuperfluousWhitespaceUnitTest.1.css.fixed" role =" test" />
@@ -1507,8 +1509,11 @@ http://pear.php.net/dtd/package-2.0.xsd">
1507
1509
<install as =" CodeSniffer/Core/IsCamelCapsTest.php" name =" tests/Core/IsCamelCapsTest.php" />
1508
1510
<install as =" CodeSniffer/Core/ErrorSuppressionTest.php" name =" tests/Core/ErrorSuppressionTest.php" />
1509
1511
<install as =" CodeSniffer/Core/File/FindExtendedClassNameTest.php" name =" tests/Core/File/FindExtendedClassNameTest.php" />
1512
+ <install as =" CodeSniffer/Core/File/FindExtendedClassNameTest.inc" name =" tests/Core/File/FindExtendedClassNameTest.inc" />
1510
1513
<install as =" CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.php" name =" tests/Core/File/FindImplementedInterfaceNamesTest.php" />
1514
+ <install as =" CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.inc" name =" tests/Core/File/FindImplementedInterfaceNamesTest.inc" />
1511
1515
<install as =" CodeSniffer/Core/File/GetMethodParametersTest.php" name =" tests/Core/File/GetMethodParametersTest.php" />
1516
+ <install as =" CodeSniffer/Core/File/GetMethodParametersTest.inc" name =" tests/Core/File/GetMethodParametersTest.inc" />
1512
1517
<install as =" CodeSniffer/Standards/AllSniffs.php" name =" tests/Standards/AllSniffs.php" />
1513
1518
<install as =" CodeSniffer/Standards/AbstractSniffUnitTest.php" name =" tests/Standards/AbstractSniffUnitTest.php" />
1514
1519
</filelist >
@@ -1526,8 +1531,11 @@ http://pear.php.net/dtd/package-2.0.xsd">
1526
1531
<install as =" CodeSniffer/Core/IsCamelCapsTest.php" name =" tests/Core/IsCamelCapsTest.php" />
1527
1532
<install as =" CodeSniffer/Core/ErrorSuppressionTest.php" name =" tests/Core/ErrorSuppressionTest.php" />
1528
1533
<install as =" CodeSniffer/Core/File/FindExtendedClassNameTest.php" name =" tests/Core/File/FindExtendedClassNameTest.php" />
1534
+ <install as =" CodeSniffer/Core/File/FindExtendedClassNameTest.inc" name =" tests/Core/File/FindExtendedClassNameTest.inc" />
1529
1535
<install as =" CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.php" name =" tests/Core/File/FindImplementedInterfaceNamesTest.php" />
1536
+ <install as =" CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.inc" name =" tests/Core/File/FindImplementedInterfaceNamesTest.inc" />
1530
1537
<install as =" CodeSniffer/Core/File/GetMethodParametersTest.php" name =" tests/Core/File/GetMethodParametersTest.php" />
1538
+ <install as =" CodeSniffer/Core/File/GetMethodParametersTest.inc" name =" tests/Core/File/GetMethodParametersTest.inc" />
1531
1539
<install as =" CodeSniffer/Standards/AllSniffs.php" name =" tests/Standards/AllSniffs.php" />
1532
1540
<install as =" CodeSniffer/Standards/AbstractSniffUnitTest.php" name =" tests/Standards/AbstractSniffUnitTest.php" />
1533
1541
<ignore name =" bin/phpcs.bat" />
@@ -1670,6 +1678,75 @@ http://pear.php.net/dtd/package-2.0.xsd">
1670
1678
-- Hooks for version control systems will no longer be maintained within the PHPCS project
1671
1679
</notes >
1672
1680
</release >
1681
+ <release >
1682
+ <version >
1683
+ <release >2.8.0</release >
1684
+ <api >2.8.0</api >
1685
+ </version >
1686
+ <stability >
1687
+ <release >stable</release >
1688
+ <api >stable</api >
1689
+ </stability >
1690
+ <date >2017-02-02</date >
1691
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
1692
+ <notes >
1693
+ - The Internal.NoCodeFound error is no longer generated for content sourced from STDIN
1694
+ -- This should stop some Git hooks generating errors because PHPCS is trying to process the refs passed on STDIN
1695
+ - Squiz.Commenting.DocCommentAlignment now checks comments on class properties defined using the VAR keyword
1696
+ -- Thanks to Klaus Purer for the patch
1697
+ - The getMethodParameters() method now recognises "self" as a valid type hint
1698
+ -- The return array now contains a new "content" index containing the raw content of the param definition
1699
+ -- Thanks to Juliette Reinders Folmer for the patch
1700
+ - The getMethodParameters() method now supports nullable types
1701
+ -- The return array now contains a new "nullable_type" index set to true or false for each method param
1702
+ -- Thanks to Juliette Reinders Folmer for the patch
1703
+ - The getMethodParameters() method now supports closures
1704
+ -- Thanks to Juliette Reinders Folmer for the patch
1705
+ - Added more guard code for JS files with syntax errors (request #1271 and request #1272)
1706
+ - Added more guard code for CSS files with syntax errors (request #1304)
1707
+ - PEAR.Commenting.FunctionComment fixers now correctly handle multi-line param comments
1708
+ - AbstractVariableSniff now supports anonymous classes
1709
+ -- Thanks to Juliette Reinders Folmer for the patch
1710
+ - Generic.NamingConventions.ConstructorName and PEAR.NamingConventions.ValidVariable now support anonymous classes
1711
+ - Generic.NamingConventions.CamelCapsFunctionName and PEAR.NamingConventions.ValidFunctionName now support anonymous classes
1712
+ -- Thanks to Juliette Reinders Folmer for the patch
1713
+ - Generic.CodeAnalysis.UnusedFunctionParameter and PEAR.Functions.ValidDefaultValue now support closures
1714
+ -- Thanks to Juliette Reinders Folmer for the patch
1715
+ - PEAR.NamingConventions.ValidClassName and Squiz.Classes.ValidClassName now support traits
1716
+ -- Thanks to Juliette Reinders Folmer for the patch
1717
+ - Generic.Functions.FunctionCallArgumentSpacing now supports closures other PHP-provided functions
1718
+ -- Thanks to Algirdas Gurevicius for the patch
1719
+ - Fixed an error where a nullable type character was detected as an inline then token
1720
+ -- A new T_NULLABLE token has been added to represent the ? nullable type character
1721
+ -- Thanks to Jaroslav Hanslík for the patch
1722
+ - Squiz.WhiteSpace.SemicolonSpacing no longer removes comments while fixing the placement of semicolons
1723
+ -- Thanks to Algirdas Gurevicius for the patch
1724
+ - Fixed bug #1230 : JS tokeniser incorrectly tokenises bitwise shifts as comparison
1725
+ -- Thanks to Ryan McCue for the patch
1726
+ - Fixed bug #1237 : Uninitialized string offset in PHP Tokenizer on PHP 5.2
1727
+ - Fixed bug #1239 : Warning when static method name is 'default'
1728
+ - Fixed bug #1240 : False positive for function names starting with triple underscore
1729
+ -- Thanks to Juliette Reinders Folmer for the patch
1730
+ - Fixed bug #1245 : SELF is not recognised as T_SELF token in: return new self
1731
+ - Fixed bug #1246 : A mix of USE statements with and without braces can cause the tokenizer to mismatch brace tokens
1732
+ -- Thanks to Michał Bundyra for the patch
1733
+ - Fixed bug #1249 : GitBlame report requires a .git directory
1734
+ - Fixed bug #1252 : Squiz.Strings.ConcatenationSpacing fix creates syntax error when joining a number to a string
1735
+ - Fixed bug #1253 : Generic.ControlStructures.InlineControlStructure fix creates syntax error fixing if-try/catch
1736
+ - Fixed bug #1255 : Inconsistent indentation check results when ELSE on new line
1737
+ - Fixed bug #1257 : Double dash in CSS class name can lead to "Named colours are forbidden" false positives
1738
+ - Fixed bug #1260 : Syntax errors not being shown when error_prepend_string is set
1739
+ -- Thanks to Juliette Reinders Folmer for the patch
1740
+ - Fixed bug #1264 : Array return type hint is sometimes detected as T_ARRAY_HINT instead of T_RETURN_TYPE
1741
+ -- Thanks to Jaroslav Hanslík for the patch
1742
+ - Fixed bug #1265 : ES6 arrow function raises unexpected operator spacing errors
1743
+ - Fixed bug #1267 : Fixer incorrectly handles filepaths with repeated dir names
1744
+ -- Thanks to Sergey Ovchinnikov for the patch
1745
+ - Fixed bug #1276 : Commenting.FunctionComment.InvalidReturnVoid conditional issue with anonymous classes
1746
+ - Fixed bug #1277 : Squiz.PHP.DisallowMultipleAssignments.Found error when var assignment is on the same line as an open tag
1747
+ - Fixed bug #1284 : Squiz.Arrays.ArrayBracketSpacing.SpaceBeforeBracket false positive match for short list syntax
1748
+ </notes >
1749
+ </release >
1673
1750
<release >
1674
1751
<version >
1675
1752
<release >2.7.1</release >
0 commit comments