Skip to content

6.0.0

@Ocramius Ocramius tagged this 16 Mar 18:51
 * 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 = $bar = baz()`
 * 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

Total issues resolved: **19**

- [38: Forbid `Abstract`, `Exception` and `Interface` prefixing too](https://github.com/doctrine/coding-standard/pull/38) thanks to @greg0ire
- [52: Exclude Squiz.Commenting.FunctionComment.ThrowsNotCapital sniff](https://github.com/doctrine/coding-standard/pull/52) thanks to @deeky666
- [90: CI: Test against PHP 7.3](https://github.com/doctrine/coding-standard/pull/90) thanks to @Majkl578
- [94: Add test script to make it easier to run the tests](https://github.com/doctrine/coding-standard/pull/94) thanks to @carusogabriel
- [95: Add sniff to forbid multiple lines between functions](https://github.com/doctrine/coding-standard/pull/95) thanks to @carusogabriel
- [96: Link to Slack instead of Gitter](https://github.com/doctrine/coding-standard/pull/96) thanks to @greg0ire
- [97: Disallow "Class <name>" as class comment](https://github.com/doctrine/coding-standard/pull/97) thanks to @linaori
- [98: Remove IDEA/Phpstorm default file template properly](https://github.com/doctrine/coding-standard/pull/98) thanks to @ostrolucky
- [99: Update to PHPCS 3.4 and use new Sniffs](https://github.com/doctrine/coding-standard/pull/99) thanks to @carusogabriel
- [101: Use Ubuntu 16.04](https://github.com/doctrine/coding-standard/pull/101) thanks to @carusogabriel
- [104: Forbid duplicated variables assignments](https://github.com/doctrine/coding-standard/pull/104) thanks to @carusogabriel
- [105: Add rule to force simplification of returns](https://github.com/doctrine/coding-standard/pull/105) thanks to @carusogabriel
- [108: Make all annotations useful by default](https://github.com/doctrine/coding-standard/pull/108) thanks to @Majkl578
- [109: Upgrade to Slevomat CS 5.0](https://github.com/doctrine/coding-standard/pull/109) thanks to @Majkl578
- [111: Enable SpreadOperatorSpacing sniff](https://github.com/doctrine/coding-standard/pull/111) thanks to @Majkl578
- [112: Forbid LSB for constants](https://github.com/doctrine/coding-standard/pull/112) thanks to @Majkl578
- [114: Forbid "Trait" suffix](https://github.com/doctrine/coding-standard/pull/114) thanks to @Majkl578
- [115: Trigger CI failure when phpcbf cannot fix the file](https://github.com/doctrine/coding-standard/pull/115) thanks to @ostrolucky
- [120: Require newline before return](https://github.com/doctrine/coding-standard/pull/120) thanks to @ostrolucky
Assets 2
Loading