@@ -17,67 +17,17 @@ http://pear.php.net/dtd/package-2.0.xsd">
17
17
<date>2019-12-04</date>
18
18
<time>15:42:00</time>
19
19
<version>
20
- <release>3.5.3 </release>
21
- <api>3.5.3 </api>
20
+ <release>3.5.4 </release>
21
+ <api>3.5.4 </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
- - The PHP 7.4 T_FN token has been made available for older versions
30
- -- T_FN represents the fn string used for arrow functions
31
- -- The double arrow becomes the scope opener, and uses a new T_FN_ARROW token type
32
- -- The token after the statement (normally a semicolon) becomes the scope closer
33
- -- The token is also associated with the opening and closing parenthesis of the statement
34
- -- Any functions named "fn" will cause have a T_FN token for the function name, but have no scope information
35
- -- Thanks to Michał Bundyra for the help with this change
36
- - PHP 7.4 numeric separators are now tokenized in the same way when using older PHP versions
37
- -- Previously, a number like 1_000 would tokenize as T_LNUMBER (1), T_STRING (_000)
38
- -- Now, the number tokenizes as T_LNUMBER (1_000)
39
- -- Sniff developers should consider how numbers with underscores impact their custom sniffs
40
- - The PHPCS file cache now takes file permissions into account
41
- -- The cache is now invalidated for a file when its permissions are changed
42
- - File::getMethodParameters() now supports arrow functions
43
- - File::getMethodProperties() now supports arrow functions
44
- - Added Fixer::changeCodeBlockIndent() to change the indent of a code block while auto-fixing
45
- -- Can be used to either increase or decrease the indent
46
- -- Useful when moving the start position of something like a closure, where you want the content to also move
47
- - Added Generic.Files.ExecutableFile sniff
48
- -- Ensures that files are not executable
49
- -- Thanks to Matthew Peveler for the contribution
50
- - Generic.CodeAnalysis.EmptyPhpStatement now reports unnecessary semicolons after control structure closing braces
51
- -- Thanks to Vincent Langlet for the patch
52
- - Generic.PHP.LowerCaseKeyword now enforces that the "fn" keyword is lowercase
53
- -- Thanks to Michał Bundyra for the patch
54
- - Generic.WhiteSpace.ScopeIndent now supports static arrow functions
55
- - PEAR.Functions.FunctionCallSignature now adjusts the indent of function argument contents during auto-fixing
56
- -- Previously, only the first line of an argument was changed, leading to inconsistent indents
57
- -- This change also applies to PSR2.Methods.FunctionCallSignature
58
- - PSR2.ControlStructures.ControlStructureSpacing now checks whitespace before the closing parenthesis of multi-line control structures
59
- -- Previously, it incorrectly applied the whitespace check for single-line definitions only
60
- - PSR12.Functions.ReturnTypeDeclaration now checks the return type of arrow functions
61
- -- Thanks to Michał Bundyra for the patch
62
- - PSR12.Traits.UseDeclaration now ensures all trait import statements are grouped together
63
- -- Previously, the trait import section of the class ended when the first non-import statement was found
64
- -- Checking now continues throughout the class to ensure all statements are grouped together
65
- -- This also ensures that empty lines are not requested after an import statement that isn't the last one
66
- - Squiz.Functions.LowercaseFunctionKeywords now enforces that the "fn" keyword is lowercase
67
- -- Thanks to Michał Bundyra for the patch
68
- - Fixed bug #2586 : Generic.WhiteSpace.ScopeIndent false positives when indenting open tags at a non tab-stop
69
- - Fixed bug #2638 : Squiz.CSS.DuplicateClassDefinitionSniff sees comments as part of the class name
70
- -- Thanks to Raphael Horber for the patch
71
- - Fixed bug #2640 : Squiz.WhiteSpace.OperatorSpacing false positives for some negation operators
72
- -- Thanks to Jakub Chábek and Juliette Reinders Folmer for the patch
73
- - Fixed bug #2674 : Squiz.Functions.FunctionDeclarationArgumentSpacing prints wrong argument name in error message
74
- - Fixed bug #2676 : PSR12.Files.FileHeader locks up when file ends with multiple inline comments
75
- - Fixed bug #2678 : PSR12.Classes.AnonClassDeclaration incorrectly enforcing that closing brace be on a line by itself
76
- - Fixed bug #2685 : File::getMethodParameters() setting typeHintEndToken for vars with no type hint
77
- -- Thanks to Juliette Reinders Folmer for the patch
78
- - Fixed bug #2694 : AbstractArraySniff produces invalid indices when using ternary operator
79
- -- Thanks to Michał Bundyra for the patch
80
- - Fixed bug #2702 : Generic.WhiteSpace.ScopeIndent false positive when using ternary operator with short arrays
29
+ - Fixed bug #2751 : Autoload relative paths first to avoid confusion with files from the global include path
30
+ -- Thanks to Klaus Purer for the patch
81
31
</notes>
82
32
<contents>
83
33
<dir name="/">
0 commit comments