Tags: greg0ire/coding-standard
Tags
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](doctrine#18) thanks to @Ocramius - [19: Add Null Coalesce Operator](doctrine#19) thanks to @carusogabriel - [20: New with parentheses](doctrine#20) thanks to @carusogabriel - [22: Early return sniff](doctrine#22) thanks to @carusogabriel - [23: ForbiddenFunctions: Add more basic blackisted aliases](doctrine#23) thanks to @Majkl578 - [24: Enable ForbiddenComments sniff](doctrine#24) thanks to @Majkl578 - [25: Whitelist `@requires` annotation](doctrine#25) thanks to @Majkl578
v2.1.0 This release adds sniffs to import global functions and constants. Total issues resolved: **3** Improvement - [15: &doctrine#91;RFC&doctrine#92; Reference global functions and constants via `use`](doctrine#15) thanks to @Majkl578 - [16: Added tests for referencing functions and consts in `use`](doctrine#16) thanks to @Majkl578 - [17: Add relevant annotations](doctrine#17) thanks to @lcobucci
This release makes this project compatible with PHPCS v3.0 and implements some missing sniffs (also making sure that we can apply automatic fixes with PHPCBF). Total issues resolved: **1** - [8: Implement missing sniffs (upgrading to PHPCS v3)](doctrine#8) thanks to @lcobucci