Releases: php-collective/code-sniffer
Releases · php-collective/code-sniffer
0.5.0
Improvements
- Add support for multi-line array shape annotations by @dereuromark in #38
- Fix VariableWrong false positives for partial doc blocks by @dereuromark in #40
- Fix scope_opener error for abstract/interface methods by @dereuromark in #39
- Skip docblock requirement for constructors with fully typed parameters by @dereuromark in #41
- Fix param order when adding missing
@paramannotations by @dereuromark in #42 - Remove AttributesSniff to fix conflict with Slevomat ReferenceUsedNamesOnly by @dereuromark in #43
The attribute usage is now the same as class usage. This seems to make sense moving forward and to not clash with other sniffer packages - and triggers now the major.
Full Changelog: 0.4.6...0.5.0
0.4.6
Fixes
- Fixed use statement sniff regressions
Improvements
- Added ConsistentIndentSniff
0.4.5
Improvements
- Added auto fixing to FQCN attribute sniff.
0.4.4
Improvements
- Added PhpCollective.ControlStructures.ControlSignature sniff
Full Changelog: 0.4.3...0.4.4
0.4.3
0.4.2
Fixes
- Fix up do while loops.
0.4.1
Fixes
- Add missing sniff ControlStructureEmptyStatement
0.4.0
Improvements
- Use
"squizlabs/php_codesniffer": "^4.0.0"now.
0.3.1
Improvements
- Improved PhpCollective/Sniffs/Commenting/DocBlockParamSniff to handle
paramsbetter. Only require them once they are needed (missing type on a param or a random param defined already that cannot be removed).
0.3.0
What's Changed
- Add more useful sniffs:
- NormalizedArrays.Arrays.ArrayBraceSpacing
- Modernize.FunctionCalls.Dirname
- Generic.Arrays.ArrayIndent
- Universal.Constants.LowercaseClassResolutionKeyword
- Universal.Constants.UppercaseMagicConstants
- Universal.Operators.ConcatPosition
- Universal.UseStatements.NoUselessAliases
- Universal.WhiteSpace.PrecisionAlignment
- ArrayDeclarationSniff has now the ability to format nested arrays, use
none/assoc/all(defaultassoc).
This package now also includes phpcsstandards/phpcsextra dependency for even better sniff experience.
Full Changelog: 0.2.21...0.3.0