Skip to content

Commit 557a1fc

Browse files
committed
Prepare for 3.5.3 release
1 parent 68048f3 commit 557a1fc

File tree

1 file changed

+68
-2
lines changed

1 file changed

+68
-2
lines changed

package.xml

+68-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
1414
<email>[email protected]</email>
1515
<active>yes</active>
1616
</lead>
17-
<date>2019-10-28</date>
18-
<time>15:31:00</time>
17+
<date>2019-12-04</date>
18+
<time>15:42:00</time>
1919
<version>
2020
<release>3.5.3</release>
2121
<api>3.5.3</api>
@@ -2025,6 +2025,72 @@ http://pear.php.net/dtd/package-2.0.xsd">
20252025
</filelist>
20262026
</phprelease>
20272027
<changelog>
2028+
<release>
2029+
<version>
2030+
<release>3.5.3</release>
2031+
<api>3.5.3</api>
2032+
</version>
2033+
<stability>
2034+
<release>stable</release>
2035+
<api>stable</api>
2036+
</stability>
2037+
<date>2019-12-04</date>
2038+
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD License</license>
2039+
<notes>
2040+
- The PHP 7.4 T_FN token has been made available for older versions
2041+
-- T_FN represents the fn string used for arrow functions
2042+
-- The double arrow becomes the scope opener, and uses a new T_FN_ARROW token type
2043+
-- The token after the statement (normally a semicolon) becomes the scope closer
2044+
-- The token is also associated with the opening and closing parenthesis of the statement
2045+
-- Any functions named "fn" will cause have a T_FN token for the function name, but have no scope information
2046+
-- Thanks to Michał Bundyra for the help with this change
2047+
- PHP 7.4 numeric separators are now tokenized in the same way when using older PHP versions
2048+
-- Previously, a number like 1_000 would tokenize as T_LNUMBER (1), T_STRING (_000)
2049+
-- Now, the number tokenizes as T_LNUMBER (1_000)
2050+
-- Sniff developers should consider how numbers with underscores impact their custom sniffs
2051+
- The PHPCS file cache now takes file permissions into account
2052+
-- The cache is now invalidated for a file when its permissions are changed
2053+
- File::getMethodParameters() now supports arrow functions
2054+
- File::getMethodProperties() now supports arrow functions
2055+
- Added Fixer::changeCodeBlockIndent() to change the indent of a code block while auto-fixing
2056+
-- Can be used to either increase or decrease the indent
2057+
-- Useful when moving the start position of something like a closure, where you want the content to also move
2058+
- Added Generic.Files.ExecutableFile sniff
2059+
-- Ensures that files are not executable
2060+
-- Thanks to Matthew Peveler for the contribution
2061+
- Generic.CodeAnalysis.EmptyPhpStatement now reports unnecessary semicolons after control structure closing braces
2062+
-- Thanks to Vincent Langlet for the patch
2063+
- Generic.PHP.LowerCaseKeyword now enforces that the "fn" keyword is lowercase
2064+
-- Thanks to Michał Bundyra for the patch
2065+
- Generic.WhiteSpace.ScopeIndent now supports static arrow functions
2066+
- PEAR.Functions.FunctionCallSignature now adjusts the indent of function argument contents during auto-fixing
2067+
-- Previously, only the first line of an argument was changed, leading to inconsistent indents
2068+
-- This change also applies to PSR2.Methods.FunctionCallSignature
2069+
- PSR2.ControlStructures.ControlStructureSpacing now checks whitespace before the closing parenthesis of multi-line control structures
2070+
-- Previously, it incorrectly applied the whitespace check for single-line definitions only
2071+
- PSR12.Functions.ReturnTypeDeclaration now checks the return type of arrow functions
2072+
-- Thanks to Michał Bundyra for the patch
2073+
- PSR12.Traits.UseDeclaration now ensures all trait import statements are grouped together
2074+
-- Previously, the trait import section of the class ended when the first non-import statement was found
2075+
-- Checking now continues throughout the class to ensure all statements are grouped together
2076+
-- This also ensures that empty lines are not requested after an import statement that isn't the last one
2077+
- Squiz.Functions.LowercaseFunctionKeywords now enforces that the "fn" keyword is lowercase
2078+
-- Thanks to Michał Bundyra for the patch
2079+
- Fixed bug #2586 : Generic.WhiteSpace.ScopeIndent false positives when indenting open tags at a non tab-stop
2080+
- Fixed bug #2638 : Squiz.CSS.DuplicateClassDefinitionSniff sees comments as part of the class name
2081+
-- Thanks to Raphael Horber for the patch
2082+
- Fixed bug #2640 : Squiz.WhiteSpace.OperatorSpacing false positives for some negation operators
2083+
-- Thanks to Jakub Chábek and Juliette Reinders Folmer for the patch
2084+
- Fixed bug #2674 : Squiz.Functions.FunctionDeclarationArgumentSpacing prints wrong argument name in error message
2085+
- Fixed bug #2676 : PSR12.Files.FileHeader locks up when file ends with multiple inline comments
2086+
- Fixed bug #2678 : PSR12.Classes.AnonClassDeclaration incorrectly enforcing that closing brace be on a line by itself
2087+
- Fixed bug #2685 : File::getMethodParameters() setting typeHintEndToken for vars with no type hint
2088+
-- Thanks to Juliette Reinders Folmer for the patch
2089+
- Fixed bug #2694 : AbstractArraySniff produces invalid indices when using ternary operator
2090+
-- Thanks to Michał Bundyra for the patch
2091+
- Fixed bug #2702 : Generic.WhiteSpace.ScopeIndent false positive when using ternary operator with short arrays
2092+
</notes>
2093+
</release>
20282094
<release>
20292095
<version>
20302096
<release>3.5.2</release>

0 commit comments

Comments
 (0)