Releases: consistence/coding-standard
Releases · consistence/coding-standard
3.2
3.1
3.0.1
3.0
New features
- Additional sniffs for checking current standard (#34)
- check that there are parentheses when calling constructor even when no parameters are given
- check that single line content PHPDocs are actually written in single line
- check that language expressions are not written with parentheses if possible
- check that there are no empty comments
Rule changes
- Use
float
instead ofdouble
orreal
(#35) - Forbid
(binary)
and(unset)
typecasts (#36) - Disallow
empty()
since it is magic (#37)
Maintenance
- Remove support for PHP 7.0, since it is no longer supported and adopt PHP 7.1 (#33)
2.4
2.3.1
2.3
- PHP_CodeSniffer 3.2 (#29)
- Arrays indentation sniff
Generic.Arrays.ArrayIndent
(#30)
2.2.1
2.2
- Remove DisallowAlternativePHPTags as they have been removed from PHP 7.0 onwards (#25)
- PHP_CodeSniffer 3.1 (#26)
- New sniff
Consistence.Exceptions.ExceptionDeclaration
checks exception rules from the standard (#19 thanks to @mhujer)- Exception name must end with Exception
- Exception must be chainable
- Exception must be placed in exception (configurable) directory