PHP Code Sniffer v3.4.2 Release Notes

Release Date: 2019-04-11 // almost 5 years ago
    • Squiz.Arrays.ArrayDeclaration now has improved handling of syntax errors
    • ๐Ÿ›  Fixed an issue where the PCRE JIT on PHP 7.3 caused PHPCS to die when using the parallel option
      • PHPCS now disables the PCRE JIT before running
    • ๐Ÿ›  Fixed bug #2368 : MySource.PHP.AjaxNullComparison throws error when first function has no doc comment
    • ๐Ÿ›  Fixed bug #2414 : Indention false positive in switch/case/if combination
    • ๐Ÿ›  Fixed bug #2423 : Squiz.Formatting.OperatorBracket.MissingBrackets error with static
    • ๐Ÿ›  Fixed bug #2450 : Indentation false positive when closure containing nested IF conditions used as function argument
    • ๐Ÿ›  Fixed bug #2452 : LowercasePHPFunctions sniff failing on "new \File()"
    • ๐Ÿ›  Fixed bug #2453 : Squiz.CSS.SemicolonSpacingSniff false positive when style name proceeded by an asterisk
      • Thanks to Juliette Reinders Folmer for the patch
    • ๐Ÿ›  Fixed bug #2464 : Fixer conflict between Generic.WhiteSpace.ScopeIndent and Squiz.WhiteSpace.ScopeClosingBrace when class indented 1 space
    • ๐Ÿ›  Fixed bug #2465 : Excluding a sniff by path is not working
    • ๐Ÿ›  Fixed bug #2467 : PHP open/close tags inside CSS files are replaced with internal PHPCS token strings when auto fixing