Releases: consistence/coding-standard
Releases · consistence/coding-standard
2.0
1.1
1.0
New features
- PHP 7.0 and 7.1 coding standard rules (#9)
- Slevomat sniffs for checking the standard (#11)
- This includes primarily sniffs for checking namespaces, uses, scalar type hints and other PHP 7 features.
Rule changes
- Trait uses must be FQN (#12)
- Remove rules for creating exception interface hierarchies (#13)
- Remove rule for separating namespace uses by top-level namespace (#14)
- Require bool and int in PHPDoc to be consistent with PHP's scalar types (#15)
- Rules for writing inline
@var
(#16)
See respective PRs for details and reasons.
Maintenance
- Remove support for PHP 5.6, since it is no longer supported and adopt PHP 7.0 (#10)
0.13
0.12
- PHP_CodeSniffer 2.7
- enable
Generic.PHP.DisallowAlternativePHPTags
sniff - enable
ignoreNewlines
forSquiz.WhiteSpace.ObjectOperatorSpacing
to support multiline calls Squiz.Functions.MultiLineFunctionDeclaration
has been reworked to work with return type hints
0.11.1
- exclude
Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterBracket
because it conflicts with return type hints in anonymous functions (function foo(): int {}
)
0.11
0.10.1
- Fixing compatibility issue raised in PHP_CodeSniffer 2.5.1 where false positives are reported for code, which is inteded to run on PHP 5, but is checked under PHP 7 (caused by phpcs#858).
- If you use this library in a PHP 7 only project, you may want to re-enable
Squiz.Commenting.FunctionComment.TypeHintMissing
in your ruleset.
- If you use this library in a PHP 7 only project, you may want to re-enable
- Re-enabled more checks for multi-line calls, because comments in them are now tolerated phpcs#794.
0.10
- remove support for PHP 5.5, since it is no longer supported
0.9
- PHP_CodeSniffer 2.5 with better PHP 7 support
- better handling of multiline function calls and declarations