Skip to content

v6.0.0

Compare
Choose a tag to compare
@Ocramius Ocramius released this 16 Mar 18:54
6.0.0
d33f69e

Build Status

This new major release brings in some new default rules:

  • disallowed Abstract, Trait, Exception, Interface prefixes along with suffixes
  • forbid multiple lines between declared functions
  • disallow /** class Foo */ for class Foo comments (some editors add it by default, and it is not useful)
  • disallow PHPStorm/IntelliJ default file header including author name
  • forbid duplicate variable assignments, such as $foo = $foo = bar()
  • enforce spacing between the type declaration and the variadic declaration of a function parameter: function (int $foo)
  • forbid late static binding for constants: $foo::BAR is now a violation
  • require an empty line before a return statement when not directly within a flow control construct
  • intersection and generic types support, thanks to Slevomat CS 5

Total issues resolved: 19