@@ -14,8 +14,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
14
14
15
15
<active >yes</active >
16
16
</lead >
17
- <date >2017-07-18 </date >
18
- <time >11:11 :00</time >
17
+ <date >2017-09-20 </date >
18
+ <time >08:44 :00</time >
19
19
<version >
20
20
<release >3.1.0</release >
21
21
<api >3.1.0</api >
@@ -1623,6 +1623,91 @@ http://pear.php.net/dtd/package-2.0.xsd">
1623
1623
</filelist >
1624
1624
</phprelease >
1625
1625
<changelog >
1626
+ <release >
1627
+ <version >
1628
+ <release >3.1.0</release >
1629
+ <api >3.1.0</api >
1630
+ </version >
1631
+ <stability >
1632
+ <release >stable</release >
1633
+ <api >stable</api >
1634
+ </stability >
1635
+ <date >2017-09-20</date >
1636
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
1637
+ <notes >
1638
+ - This release includes a change to support newer versions of PHPUnit (versions 4, 5, and 6 are now supported)
1639
+ -- The custom PHP_CodeSniffer test runner now requires a bootstrap file
1640
+ -- Developers with custom standards using the PHP_CodeSniffer test runner will need to do one of the following:
1641
+ --- run your unit tests from the PHP_CodeSniffer root dir so the bootstrap file is included
1642
+ --- specify the PHP_CodeSniffer bootstrap file on the command line: phpunit --bootstrap=/path/to/phpcs/tests/bootstrap.php
1643
+ --- require the PHP_CodeSniffer bootstrap file from your own bootstrap file
1644
+ -- If you don't run PHP_CodeSniffer unit tests, this change will not affect you
1645
+ -- Thanks to Juliette Reinders Folmer for the patch
1646
+
1647
+ - A phpcs.xml or phpcs.xml.dist file now takes precedence over the default_standard config setting
1648
+ -- Thanks to Björn Fischer for the patch
1649
+ - Both phpcs.xml and phpcs.xml.dist files can now be prefixed with a dot (request #1566)
1650
+ -- The order that the files are searched is: .phpcs.xml, .phpcs.xml.dist, phpcs.xml, phpcs.xml.dist
1651
+ - The autoloader will now search for files during unit tests runs from the same locations as during normal phpcs runs
1652
+ -- Allows for easier unit testing of custom standards that use helper classes or custom namespaces
1653
+ - Include patterns for sniffs now use OR logic instead of AND logic
1654
+ -- Previously, a file had to be in each of the include patterns to be processed by a sniff
1655
+ -- Now, a file has to only be in at least one of the patterns
1656
+ -- This change reflects the original intention of the feature
1657
+ - PHPCS will now follow symlinks under the list of checked directories
1658
+ -- This previously only worked if you specified the path to a symlink on the command line
1659
+ - Output from --config-show, --config-set, and --config-delete now includes the path to the loaded config file
1660
+ - PHPCS now cleanly exits if its config file is not readable
1661
+ -- Previously, a combination of PHP notices and PHPCS errors would be generated
1662
+ - Comment tokens that start with /** are now always tokenized as docblocks
1663
+ -- Thanks to Michał Bundyra for the patch
1664
+ - The PHP-supplied T_YIELD and T_YIELD_FROM token have been replicated for older PHP versions
1665
+ -- Thanks to Michał Bundyra for the patch
1666
+ - Added new Generic.CodeAnalysis.AssignmentInCondition sniff to warn about variable assignments inside conditions
1667
+ -- Thanks to Juliette Reinders Folmer for the contribution
1668
+ - Added Generic.Files.OneObjectStructurePerFile sniff to ensure there is a single class/interface/trait per file
1669
+ -- Thanks to Mponos George for the contribution
1670
+ - Function call sniffs now check variable function names and self/static object creation
1671
+ -- Specific sniffs are Generic.Functions.FunctionCallArgumentSpacing, PEAR.Functions.FunctionCallSignature, and PSR2.Methods.FunctionCallSignature
1672
+ -- Thanks to Michał Bundyra for the patch
1673
+ - Generic.Files.LineLength can now be configured to ignore all comment lines, no matter their length
1674
+ -- Set the ignoreComments property to TRUE (default is FALSE) in your ruleset.xml file to enable this
1675
+ -- Thanks to Juliette Reinders Folmer for the patch
1676
+ - Generic.PHP.LowerCaseKeyword now checks self, parent, yield, yield from, and closure (function) keywords
1677
+ -- Thanks to Michał Bundyra for the patch
1678
+ - PEAR.Functions.FunctionDeclaration now removes a blank line if it creates one by moving the curly brace during fixing
1679
+ - Squiz.Commenting.FunctionCommentThrowTag now supports PHP 7.1 multi catch exceptions
1680
+ - Squiz.Formatting.OperatorBracket no longer throws errors for PHP 7.1 multi catch exceptions
1681
+ - Squiz.Commenting.LongConditionClosingComment now supports finally statements
1682
+ - Squiz.Formatting.OperatorBracket now correctly fixes pipe separated flags
1683
+ - Squiz.Formatting.OperatorBracket now correctly fixes statements containing short array syntax
1684
+ - Squiz.PHP.EmbeddedPhp now properly fixes cases where the only content in an embedded PHP block is a comment
1685
+ -- Thanks to Juliette Reinders Folmer for the patch
1686
+ - Squiz.WhiteSpace.ControlStructureSpacing now ignores comments when checking blank lines at the top of control structures
1687
+ - Squiz.WhiteSpace.ObjectOperatorSpacing now detects and fixes spaces around double colons
1688
+ -- Thanks to Julius Šmatavičius for the patch
1689
+ - Squiz.WhiteSpace.MemberVarSpacing can now be configured to check any number of blank lines between member vars
1690
+ -- Set the spacing property (default is 1) in your ruleset.xml file to set the spacing
1691
+ - Squiz.WhiteSpace.MemberVarSpacing can now be configured to check a different number of blank lines before the first member var
1692
+ -- Set the spacingBeforeFirst property (default is 1) in your ruleset.xml file to set the spacing
1693
+ - Added a new PHP_CodeSniffer\Util\Tokens::$ooScopeTokens static member var for quickly checking object scope
1694
+ -- Includes T_CLASS, T_ANON_CLASS, T_INTERFACE, and T_TRAIT
1695
+ -- Thanks to Juliette Reinders Folmer for the patch
1696
+ - PHP_CodeSniffer\Files\File::findExtendedClassName() now supports extended interfaces
1697
+ -- Thanks to Martin Hujer for the patch
1698
+ - Fixed bug #1550 : Squiz.Commenting.FunctionComment false positive when function contains closure
1699
+ - Fixed bug #1577 : Generic.InlineControlStructureSniff breaks with a comment between body and condition in do while loops
1700
+ - Fixed bug #1581 : Sniffs not loaded when one-standard directories are being registered in installed_paths
1701
+ - Fixed bug #1591 : Autoloader failing to load arbitrary files when installed_paths only set via a custom ruleset
1702
+ - Fixed bug #1605 : Squiz.WhiteSpace.OperatorSpacing false positive on unary minus after comment
1703
+ -- Thanks to Juliette Reinders Folmer for the patch
1704
+ - Fixed bug #1615 : Uncaught RuntimeException when phpcbf fails to fix files
1705
+ - Fixed bug #1637 : Generic.WhiteSpaceScopeIndent closure argument indenting incorrect with multi-line strings
1706
+ - Fixed bug #1638 : Squiz.WhiteSpace.ScopeClosingBrace closure argument indenting incorrect with multi-line strings
1707
+ - Fixed bug #1640 : Squiz.Strings.DoubleQuoteUsage replaces tabs with spaces when fixing
1708
+ -- Thanks to Juliette Reinders Folmer for the patch
1709
+ </notes >
1710
+ </release >
1626
1711
<release >
1627
1712
<version >
1628
1713
<release >3.0.2</release >
0 commit comments