@@ -17,86 +17,16 @@ http://pear.php.net/dtd/package-2.0.xsd">
17
17
<date >2017-09-20</date >
18
18
<time >08:44:00</time >
19
19
<version >
20
- <release >3.1.0 </release >
21
- <api >3.1.0 </api >
20
+ <release >3.1.1 </release >
21
+ <api >3.1.1 </api >
22
22
</version >
23
23
<stability >
24
24
<release >stable</release >
25
25
<api >stable</api >
26
26
</stability >
27
27
<license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD 3-Clause License</license >
28
28
<notes >
29
- - This release includes a change to support newer versions of PHPUnit (versions 4, 5, and 6 are now supported)
30
- -- The custom PHP_CodeSniffer test runner now requires a bootstrap file
31
- -- Developers with custom standards using the PHP_CodeSniffer test runner will need to do one of the following:
32
- --- run your unit tests from the PHP_CodeSniffer root dir so the bootstrap file is included
33
- --- specify the PHP_CodeSniffer bootstrap file on the command line: phpunit --bootstrap=/path/to/phpcs/tests/bootstrap.php
34
- --- require the PHP_CodeSniffer bootstrap file from your own bootstrap file
35
- -- If you don't run PHP_CodeSniffer unit tests, this change will not affect you
36
- -- Thanks to Juliette Reinders Folmer for the patch
37
-
38
- - A phpcs.xml or phpcs.xml.dist file now takes precedence over the default_standard config setting
39
- -- Thanks to Björn Fischer for the patch
40
- - Both phpcs.xml and phpcs.xml.dist files can now be prefixed with a dot (request #1566)
41
- -- The order that the files are searched is: .phpcs.xml, .phpcs.xml.dist, phpcs.xml, phpcs.xml.dist
42
- - The autoloader will now search for files during unit tests runs from the same locations as during normal phpcs runs
43
- -- Allows for easier unit testing of custom standards that use helper classes or custom namespaces
44
- - Include patterns for sniffs now use OR logic instead of AND logic
45
- -- Previously, a file had to be in each of the include patterns to be processed by a sniff
46
- -- Now, a file has to only be in at least one of the patterns
47
- -- This change reflects the original intention of the feature
48
- - PHPCS will now follow symlinks under the list of checked directories
49
- -- This previously only worked if you specified the path to a symlink on the command line
50
- - Output from --config-show, --config-set, and --config-delete now includes the path to the loaded config file
51
- - PHPCS now cleanly exits if its config file is not readable
52
- -- Previously, a combination of PHP notices and PHPCS errors would be generated
53
- - Comment tokens that start with /** are now always tokenized as docblocks
54
- -- Thanks to Michał Bundyra for the patch
55
- - The PHP-supplied T_YIELD and T_YIELD_FROM token have been replicated for older PHP versions
56
- -- Thanks to Michał Bundyra for the patch
57
- - Added new Generic.CodeAnalysis.AssignmentInCondition sniff to warn about variable assignments inside conditions
58
- -- Thanks to Juliette Reinders Folmer for the contribution
59
- - Added Generic.Files.OneObjectStructurePerFile sniff to ensure there is a single class/interface/trait per file
60
- -- Thanks to Mponos George for the contribution
61
- - Function call sniffs now check variable function names and self/static object creation
62
- -- Specific sniffs are Generic.Functions.FunctionCallArgumentSpacing, PEAR.Functions.FunctionCallSignature, and PSR2.Methods.FunctionCallSignature
63
- -- Thanks to Michał Bundyra for the patch
64
- - Generic.Files.LineLength can now be configured to ignore all comment lines, no matter their length
65
- -- Set the ignoreComments property to TRUE (default is FALSE) in your ruleset.xml file to enable this
66
- -- Thanks to Juliette Reinders Folmer for the patch
67
- - Generic.PHP.LowerCaseKeyword now checks self, parent, yield, yield from, and closure (function) keywords
68
- -- Thanks to Michał Bundyra for the patch
69
- - PEAR.Functions.FunctionDeclaration now removes a blank line if it creates one by moving the curly brace during fixing
70
- - Squiz.Commenting.FunctionCommentThrowTag now supports PHP 7.1 multi catch exceptions
71
- - Squiz.Formatting.OperatorBracket no longer throws errors for PHP 7.1 multi catch exceptions
72
- - Squiz.Commenting.LongConditionClosingComment now supports finally statements
73
- - Squiz.Formatting.OperatorBracket now correctly fixes pipe separated flags
74
- - Squiz.Formatting.OperatorBracket now correctly fixes statements containing short array syntax
75
- - Squiz.PHP.EmbeddedPhp now properly fixes cases where the only content in an embedded PHP block is a comment
76
- -- Thanks to Juliette Reinders Folmer for the patch
77
- - Squiz.WhiteSpace.ControlStructureSpacing now ignores comments when checking blank lines at the top of control structures
78
- - Squiz.WhiteSpace.ObjectOperatorSpacing now detects and fixes spaces around double colons
79
- -- Thanks to Julius Šmatavičius for the patch
80
- - Squiz.WhiteSpace.MemberVarSpacing can now be configured to check any number of blank lines between member vars
81
- -- Set the spacing property (default is 1) in your ruleset.xml file to set the spacing
82
- - Squiz.WhiteSpace.MemberVarSpacing can now be configured to check a different number of blank lines before the first member var
83
- -- Set the spacingBeforeFirst property (default is 1) in your ruleset.xml file to set the spacing
84
- - Added a new PHP_CodeSniffer\Util\Tokens::$ooScopeTokens static member var for quickly checking object scope
85
- -- Includes T_CLASS, T_ANON_CLASS, T_INTERFACE, and T_TRAIT
86
- -- Thanks to Juliette Reinders Folmer for the patch
87
- - PHP_CodeSniffer\Files\File::findExtendedClassName() now supports extended interfaces
88
- -- Thanks to Martin Hujer for the patch
89
- - Fixed bug #1550 : Squiz.Commenting.FunctionComment false positive when function contains closure
90
- - Fixed bug #1577 : Generic.InlineControlStructureSniff breaks with a comment between body and condition in do while loops
91
- - Fixed bug #1581 : Sniffs not loaded when one-standard directories are being registered in installed_paths
92
- - Fixed bug #1591 : Autoloader failing to load arbitrary files when installed_paths only set via a custom ruleset
93
- - Fixed bug #1605 : Squiz.WhiteSpace.OperatorSpacing false positive on unary minus after comment
94
- -- Thanks to Juliette Reinders Folmer for the patch
95
- - Fixed bug #1615 : Uncaught RuntimeException when phpcbf fails to fix files
96
- - Fixed bug #1637 : Generic.WhiteSpaceScopeIndent closure argument indenting incorrect with multi-line strings
97
- - Fixed bug #1638 : Squiz.WhiteSpace.ScopeClosingBrace closure argument indenting incorrect with multi-line strings
98
- - Fixed bug #1640 : Squiz.Strings.DoubleQuoteUsage replaces tabs with spaces when fixing
99
- -- Thanks to Juliette Reinders Folmer for the patch
29
+ - Fixed bug #1669 : Temporary expression proceeded by curly brace is detected as function call
100
30
</notes >
101
31
<contents >
102
32
<dir name =" /" >
0 commit comments