Skip to content

1.5.3

Choose a tag to compare

@gsherwood gsherwood released this 01 May 03:10
· 5284 commits to master since this release
  • Improved detection of nested IF statements that use the alternate IF/ENDIF syntax
  • PHP tokenizer now supports DEFAULT statements opened with a T_SEMICOLON
  • PSR1 CamelCapsMethodNameSniff now ignores magic methods
    • Thanks to Eser Ozvataf for the patch
  • PSR1 SideEffectsSniff now ignores methods named define()
  • PSR1 and PEAR ClassDeclarationSniffs now support traits (request #20208)
  • PSR2 ControlStructureSpacingSniff now allows newlines before/after parentheses
    • Thanks to Maurus Cuelenaere for the patch
  • Squiz LowercasePHPFunctionsSniff no longer reports errors for namespaced functions
    • Thanks to Max Galbusera for the patch
  • Squiz SwitchDeclarationSniff now allows exit() as a breaking statement for case/default
  • Squiz ValidVariableNameSniff and Zend ValidVariableNameSniff now ignore additional PHP reserved vars
    • Thanks to Mikuláš Dítě and Adrian Crepaz for the patch
  • Sniff code Squiz.WhiteSpace.MemberVarSpacing.After changed to Squiz.WhiteSpace.MemberVarSpacing.Incorrect (request #20241)
  • Fixed bug #20200 : Invalid JSON produced with specific error message
  • Fixed bug #20204 : Ruleset exclude checks are case sensitive
  • Fixed bug #20213 : Invalid error, Inline IF must be declared on single line
  • Fixed bug #20225 : array_merge() that takes more than one line generates error
  • Fixed bug #20230 : Squiz ControlStructureSpacing sniff assumes specific condition formatting
  • Fixed bug #20240 : Squiz block comment sniff fails when newline present
  • Fixed bug #20247 : The Squiz.WhiteSpace.ControlStructureSpacing sniff and do-while
    • Thanks to Alexander Obuhovich for the patch
  • Fixed bug #20248 : The Squiz_Sniffs_WhiteSpace_ControlStructureSpacingSniff sniff and empty scope
  • Fixed bug #20252 : Unitialized string offset when package name starts with underscore