All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Set minimum PHP version to 8.1.
- Bump phpcsstandards/phpcsextra and dealerdirect/phpcodesniffer-composer-installer to their stable 1.0 releases.
- Allow comments to run longer than 120 characters.
- Allow doc comments without variable names above return statements.
-
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.
- Check format of union type hints on PHP 8, using
SlevomatCodingStandard.TypeHints.UnionTypeHintFormat
.
-
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.
- Enforce the use of strict comparisons.
- Check for and disallow duplicate spaces everywhere.
- Revised rules for absolute class name references
- Use correct command prefixes
- Explicitly require PHPCSUtils to avoid setting minimum-stability
- Package name is now "ramsey/coding-standard"
- Allow bin dir in dist packages, avoiding Composer warnings
- Move ext-dom to require-dev
- Remove unnecessary (and unused) tools, commands, and code
- Initial release of Ramsey coding standard