Skip to content

7.2.0

Compare
Choose a tag to compare
@kukulich kukulich released this 06 May 11:46
· 343 commits to master since this release
7.2.0
b4f96a8

🆕 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 option ignoreSpacesInMatch
  • SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall: New option onlySingleLine
  • SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration: New option onlySingleLine

🐛 Fixes

  • SlevomatCodingStandard.TypeHints.ReturnTypeHint: Fixed internal error
  • SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn: Fixed internal error
  • SlevomatCodingStandard.Functions.RequireSingleLineCall: Fixed false positive
  • SlevomatCodingStandard.Variables.UnusedVariable: Resolve false positives with increment/decrement operators (thanks to @aadmathijssen)
  • SlevomatCodingStandard.Variables.UnusedVariable: allow increment/decrement operators after yield (thanks to @aadmathijssen)