Releases: ramsey/coding-standard
Releases · ramsey/coding-standard
2.2.0
2.1.0
2.0.3
2.0.2
2.0.1
Fixed
-
Ignore the
IncorrectWhitespaceBeforeDeclare
error emitted by theSlevomatCodingStandard.TypeHints.DeclareStrictTypes
sniff.In my personal projects, I usually have 2 newlines before the
declare
statement. One before the file header comment and one after. However, in tests, I have no file header comment, so there is only 1 newline before thedeclare
statement. Since I like my tests to follow the same coding standard as the rest of my source, it is easiest to ignore this error.
2.0.0
Added
- Check format of union type hints on PHP 8, using
SlevomatCodingStandard.TypeHints.UnionTypeHintFormat
.
Changed
-
Upgrade to slevomat/coding-standard version 7.
This may require downstream changes, since some Slevomat sniffs have BC breaks. This is why ramsey/coding-standard is bumping to version 2.0.0 for this change.
See the Slevomat changelog for 7.0.0 for details.
1.3.0
1.2.0
1.1.2
1.1.1
Fixed
- Explicitly require PHPCSUtils to avoid setting minimum-stability