Releases: php-fig-rectified/psr2r-sniffer
Releases · php-fig-rectified/psr2r-sniffer
0.6.2
Improvements
- Use more PSR2 and low-level sniffs.
- Add Empty Doc Block sniff
This ruleset now ships with 124 sniffs.
Bugfixes
- Fixed InlineDocBlock sniff around return statements and short variable less annotation (
@return {type}
). - Fixed FCQN sniff around iterable type and
(x|y)[]
mixed array type.
0.6.1
Bugfixes
- Fixed newline assertion for beginning of class/trait body.
Improvements
- Added DocBlockVariableNullHintLast sniff
- Added DocBlockTypeOrder sniff
- Added DocBlockVarNotJustNull sniff
The PSR2R standard contains 109 sniffs now.
0.6.0
Improvements
- Use new v3 code sniffer.
- DocBlockSniff added.
The PSR2R standard contains 108 sniffs now.
PHP 5.6+ is now the minimum.
0.5.2
Bugfixes
Fix false/true bool annotation.
0.5.1
Improvements
PHP 7.2/7.3 compatibility.
0.5.0
Improvements
Uses new 3.0 phpcs sniffer tool.
Also added/fixed:
- TrailingComma sniff
- InlineDocBlockSniff now handles inline doc blocks properly
- UseStatements are now ordered as expected (natural sorting)
0.4.1
Bugfixes
Fixed UnusedUse for PHP7
Add new sniffs
Added
- InlineDocBlockSniff
- DocBlockParamNotJustNullSniff
Fix merge mistake
Also added new file name check for classes and interfaces.
New sniffs and some fixes
0.3 Fix join to implode