🆕 New sniffs
- Added
SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse
- Added
SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse
🔧 Improvements
- Support for offset access type syntax in annotations
- Support for
@phpstan-assert
/@psalm-assert
annotations SlevomatCodingStandard.Whitespaces.DuplicateSpacesSniff
: New optionignoreSpacesInMatch
SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall
: New optiononlySingleLine
SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration
: New optiononlySingleLine
🐛 Fixes
SlevomatCodingStandard.TypeHints.ReturnTypeHint
: Fixed internal errorSlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn
: Fixed internal errorSlevomatCodingStandard.Functions.RequireSingleLineCall
: Fixed false positiveSlevomatCodingStandard.Variables.UnusedVariable
: Resolve false positives with increment/decrement operators (thanks to @aadmathijssen)SlevomatCodingStandard.Variables.UnusedVariable
: allow increment/decrement operators after yield (thanks to @aadmathijssen)