Releases: php-fig-rectified/psr2r-sniffer
2.1.2
2.1.1
Fixes
- Skip FQCN to use statement refactor requirement for attributes
2.1.0
2.0.0
PHP 8.1+ release
Includes quite a few improvements including type safety.
Currently, PSR2R ships with over 190 sniffs.
1.5.1
Fixes
Reverted "silence removal of SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName" for now as there is no way to ignore Attributes for now.
1.5.0
Improvements
- Remove silencing of
SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly
- Fix up DisallowTrailingComma sniffs
1.4.0
Improvements
Allow for new slevomat/coding-standard 8.x.
This is to allow for all new fixes of that series to be used by everyone.
Please note
You need to add the php_version config in your root phpcs.xml file before upgrading.
E.g. if you are using >= 7.4
in composer as PHP min requirement:
<config name="php_version" value="70400"/>
The reason is that it would otherwise execute your local PHP version (e.g. 8.1) and modify the code according to "too new language features".
1.3.5
Fixes
- Fixed DocBlockReturnSelfSniff handling of
self
Improvements
- Added enum support
- Updated whitelisted tags to be consistent with PHPUnit 9
1.3.4
Fixes
Re-added fixed TabIndent sniff.
1.3.3
Fixes
Replace faulty sniff with working one.