PHP Code Sniffer v3.5.5 Release Notes

Release Date: 2020-04-17 // about 4 years ago
    • The T_FN backfill now works more reliably so T_FN tokens only ever represent real arrow functions
      • Thanks to Juliette Reinders Folmer for the patch
    • πŸ›  Fixed an issue where including sniffs using paths containing multiple dots would silently fail
    • Generic.CodeAnalysis.EmptyPHPStatement now detects empty statements at the start of control structures
    • Error wording in PEAR.Functions.FunctionCallSignature now always uses "parenthesis" instead of sometimes using "bracket"
      • Thanks to Vincent Langlet for the patch
    • πŸ›  Fixed bug #2787 : Squiz.PHP.DisallowMultipleAssignments not ignoring typed property declarations
      • Thanks to Juliette Reinders Folmer for the patch
    • πŸ›  Fixed bug #2810 : PHPCBF fails to fix file with empty statement at start on control structure
    • πŸ›  Fixed bug #2812 : Squiz.Arrays.ArrayDeclaration not detecting some arrays with multiple arguments on the same line
      • Thanks to Jakub ChΓ‘bek for the patch
    • πŸ›  Fixed bug #2826 : Generic.WhiteSpace.ArbitraryParenthesesSpacing doesn't detect issues for statements directly after a control structure
      • Thanks to Vincent Langlet for the patch
    • πŸ›  Fixed bug #2848 : PSR12.Files.FileHeader false positive for file with mixed PHP and HTML and no file header
    • πŸ›  Fixed bug #2849 : Generic.WhiteSpace.ScopeIndent false positive with arrow function inside array
    • Fixed bug #2850 : Generic.PHP.LowerCaseKeyword complains __HALT_COMPILER is uppercase
    • πŸ›  Fixed bug #2853 : Undefined variable error when using Info report
      • Thanks to Juliette Reinders Folmer for the patch
    • Fixed bug #2865 : Double arrow tokenized as T_STRING when placed after function named "fn"
    • πŸ›  Fixed bug #2867 : Incorrect scope matching when arrow function used inside IF condition
    • πŸ›  Fixed bug #2868 : phpcs:ignore annotation doesnt work inside a docblock
    • πŸ›  Fixed bug #2878 : PSR12.Files.FileHeader conflicts with Generic.Files.LineEndings
    • πŸ›  Fixed bug #2895 : PSR2.Methods.FunctionCallSignature.MultipleArguments false positive with arrow function argument