@@ -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 >2018-12-20 </date >
18
- <time >10:54 :00</time >
17
+ <date >2019-03-19 </date >
18
+ <time >14:20 :00</time >
19
19
<version >
20
20
<release >3.4.1</release >
21
21
<api >3.4.1</api >
@@ -1922,6 +1922,102 @@ http://pear.php.net/dtd/package-2.0.xsd">
1922
1922
</filelist >
1923
1923
</phprelease >
1924
1924
<changelog >
1925
+ <release >
1926
+ <version >
1927
+ <release >3.4.1</release >
1928
+ <api >3.4.1</api >
1929
+ </version >
1930
+ <stability >
1931
+ <release >stable</release >
1932
+ <api >stable</api >
1933
+ </stability >
1934
+ <date >2019-03-19</date >
1935
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
1936
+ <notes >
1937
+ - The PEAR installable version of PHPCS was missing some files, which have been re-included in this release
1938
+ -- The code report was not previously available for PEAR installs
1939
+ -- The Generic.Formatting.SpaceBeforeCast sniff was not previously available for PEAR installs
1940
+ -- The Generic.WhiteSpace.LanguageConstructSpacing sniff was not previously available for PEAR installs
1941
+ -- Thanks to Juliette Reinders Folmer for the patch
1942
+
1943
+ - PHPCS will now refuse to run if any of the required PHP extensions are not loaded
1944
+ -- Previously, PHPCS only relied on requirements being checked by PEAR and Composer
1945
+ -- Thanks to Juliette Reinders Folmer for the patch
1946
+ - Ruleset XML parsing errors are now displayed in a readable format so they are easier to correct
1947
+ -- Thanks to Juliette Reinders Folmer for the patch
1948
+ - The PSR2 standard no longer throws duplicate errors for spacing around FOR loop parentheses
1949
+ -- Thanks to Juliette Reinders Folmer for the patch
1950
+ - T_PHPCS_SET tokens now contain sniffCode, sniffProperty, and sniffPropertyValue indexes
1951
+ -- Sniffs can use this information instead of having to parse the token content manually
1952
+ - Added more guard code for syntax errors to various CSS sniffs
1953
+ -- Thanks to Juliette Reinders Folmer for the patch
1954
+ - Generic.Commenting.DocComment error messages now contain the name of the comment tag that caused the error
1955
+ -- Thanks to Juliette Reinders Folmer for the patch
1956
+ - Generic.ControlStructures.InlineControlStructure now handles syntax errors correctly
1957
+ -- Thanks to Juliette Reinders Folmer for the patch
1958
+ - Generic.Debug.JSHint now longer requires rhino and can be run directly from the npm install
1959
+ -- Thanks to Juliette Reinders Folmer for the patch
1960
+ - Generic.Files.LineEndings no longer adds superfluous new line at the end of JS and CSS files
1961
+ -- Thanks to Juliette Reinders Folmer for the patch
1962
+ - Generic.Formatting.DisallowMultipleStatements no longer tries fix lines containing phpcs:ignore statements
1963
+ -- Thanks to Juliette Reinders Folmer for the patch
1964
+ - Generic.Functions.FunctionCallArgumentSpacing now has improved performance and anonymous class support
1965
+ -- Thanks to Juliette Reinders Folmer for the patch
1966
+ - Generic.WhiteSpace.ScopeIndent now respects changes to the "exact" property using phpcs:set mid-way through a file
1967
+ -- This allows you change the "exact" rule for only some parts of a file
1968
+ - Generic.WhiteSpace.ScopeIndent now disables exact indent checking inside all arrays
1969
+ -- Previously, this was only done when using long array syntax, but it now works for short array syntax as well
1970
+ - PEAR.Classes.ClassDeclaration now has improved handling of PHPCS annotations and tab indents
1971
+ - PSR12.Classes.ClassInstantiation has changed it's error code from MissingParenthesis to MissingParentheses
1972
+ - PSR12.Keywords.ShortFormTypeKeywords now ignores all spacing inside type casts during both checking and fixing
1973
+ -- Thanks to Juliette Reinders Folmer for the patch
1974
+ - Squiz.Classes.LowercaseClassKeywords now examines the class keyword for anonymous classes
1975
+ -- Thanks to Juliette Reinders Folmer for the patch
1976
+ - Squiz.ControlStructures.ControlSignature now has improved handling of parse errors
1977
+ -- Thanks to Juliette Reinders Folmer for the patch
1978
+ - Squiz.Commenting.PostStatementComment fixer no longer adds a blank line at the start of a JS file that begins with a comment
1979
+ -- Fixes a conflict between this sniff and the Squiz.WhiteSpace.SuperfluousWhitespace sniff
1980
+ -- Thanks to Juliette Reinders Folmer for the patch
1981
+ - Squiz.Commenting.PostStatementComment now ignores comments inside control structure conditions, such as FOR loops
1982
+ -- Fixes a conflict between this sniff and the Squiz.ControlStructures.ForLoopDeclaration sniff
1983
+ -- Thanks to Juliette Reinders Folmer for the patch
1984
+ - Squiz.Commenting.FunctionCommentThrowTag now has improved support for unknown exception types and namespaces
1985
+ -- Thanks to Juliette Reinders Folmer for the patch
1986
+ - Squiz.ControlStructures.ForLoopDeclaration has improved whitespace, closure, and empty expression support
1987
+ -- The SpacingAfterSecondNoThird error code has been removed as part of these fixes
1988
+ -- Thanks to Juliette Reinders Folmer for the patch
1989
+ - Squiz.CSS.ClassDefinitionOpeningBraceSpace now handles comments and indentation correctly
1990
+ -- Thanks to Juliette Reinders Folmer for the patch
1991
+ - Squiz.CSS.ClassDefinitionClosingBrace now handles comments, indentation, and multiple statements on the same line correctly
1992
+ -- Thanks to Juliette Reinders Folmer for the patch
1993
+ - Squiz.CSS.Opacity now handles comments correctly
1994
+ -- Thanks to Juliette Reinders Folmer for the patch
1995
+ - Squiz.CSS.SemicolonSpacing now handles comments and syntax errors correctly
1996
+ -- Thanks to Juliette Reinders Folmer for the patch
1997
+ - Squiz.NamingConventions.ValidVariableName now supports variables inside anonymous classes correctly
1998
+ -- Thanks to Juliette Reinders Folmer for the patch
1999
+ - Squiz.PHP.LowercasePHPFunctions now handles use statements, namespaces, and comments correctly
2000
+ -- Thanks to Juliette Reinders Folmer for the patch
2001
+ - Squiz.WhiteSpace.FunctionSpacing now fixes function spacing correctly when a function is the first content in a file
2002
+ -- Thanks to Juliette Reinders Folmer for the patch
2003
+ - Squiz.WhiteSpace.SuperfluousWhitespace no longer throws errors for spacing between functions and properties in anon classes
2004
+ -- Thanks to Juliette Reinders Folmer for the patch
2005
+ - Zend.Files.ClosingTag no longer adds a semi-colon during fixing of a file that only contains a comment
2006
+ -- Thanks to Juliette Reinders Folmer for the patch
2007
+ - Zend.NamingConventions.ValidVariableName now supports variables inside anonymous classes correctly
2008
+ -- Thanks to Juliette Reinders Folmer for the patch
2009
+ - Fixed bug #2298 : PSR2.Classes.ClassDeclaration allows extended class on new line
2010
+ -- Thanks to Michał Bundyra for the patch
2011
+ - Fixed bug #2337 : Generic.WhiteSpace.ScopeIndent incorrect error when multi-line function call starts on same line as open tag
2012
+ - Fixed bug #2348 : Cache not invalidated when changing a ruleset included by another
2013
+ - Fixed bug #2376 : Using __halt_compiler() breaks Generic.PHP.ForbiddenFunctions unless it's last in the function list
2014
+ -- Thanks to Sijun Zhu for the patch
2015
+ - Fixed bug #2393 : The gitmodified filter will infinitely loop when encountering deleted file paths
2016
+ -- Thanks to Lucas Manzke for the patch
2017
+ - Fixed bug #2396 : Generic.WhiteSpace.ScopeIndent incorrect error when multi-line IF condition mixed with HTML
2018
+ - Fixed bug #2431 : Use function/const not tokenized as T_STRING when preceded by comment
2019
+ </notes >
2020
+ </release >
1925
2021
<release >
1926
2022
<version >
1927
2023
<release >3.4.0</release >
0 commit comments