Releases: doctrine/coding-standard
Releases · doctrine/coding-standard
v3.0.0
This release introduces a few new additional checks that are enabled by default:
- Use the "Null Coalesce" (
??
) operator where applicable - Enforce usage of parentheses together with the
new
statement - Enforce early return where applicable
- Forbid usage of core function aliases
Total issues resolved: 7
- 18: Propose semantic versioning of the library thanks to @Ocramius
- 19: Add Null Coalesce Operator thanks to @carusogabriel
- 20: New with parentheses thanks to @carusogabriel
- 22: Early return sniff thanks to @carusogabriel
- 23: ForbiddenFunctions: Add more basic blackisted aliases thanks to @Majkl578
- 24: Enable ForbiddenComments sniff thanks to @Majkl578
- 25: Whitelist
@requires
annotation thanks to @Majkl578
v2.1.0
This release adds sniffs to import global functions and constants.
Total issues resolved: 3
Improvement
2.0.0
Version 2.0.0 incorporates many new sniffs for code safety, predictable behavior and consistent code look, Most notably:
- no more useless annotations that i.e. duplicate Git information,
- space after not operator (
!
), - short arrays only,
- no assignments in conditions,
- alphabetically sorted
use
s, - no long type names (
int
vs.integer
), - and more.
We're also moving towards PHP 7.1/7.2 standards and strict code. As part of this, we're now including checks for:
declare(strict_types=1)
in every file,- native scalar types where possible,
- scalar hints in parameter and return types,
- defining the contents of iterable types in phpDoc,
- no redundant phpDoc annotations when types are expressed natively,
Changelog:
- Total issues resolved: 0
- Total pull requests resolved: 4
- Total contributors: 2
Improvement
- 12: Update README with newer rules thanks to @Majkl578
- 11: Add more new sniffs thanks to @Majkl578
- 10: Removing license header thanks to @mikeSimonson
- 9: Import advanced PHP 7.1 sniffs thanks to @Majkl578