Skip to content

6.3.0

Choose a tag to compare

@kukulich kukulich released this 20 Apr 08:29
· 905 commits to master since this release
6.3.0
d7a4988

📣 You can now sponsor Slevomat Coding Standard development

New sniffs

  • ClassMemberSpacingSniff: Checks lines count between different class members, eg. between last property and first method
  • StrictCallSniff: Some functions have $strict parameter. This sniff reports calls to these functions without the parameter or with $strict = false
  • ForbiddenClassesSniff: Reports usage of forbidden classes, interfaces, parent classes and traits (thanks to @arxeiss)

Improvements

  • Support for parsing and checking @template etc annotations
  • Support for more prefixed annotations (@psalm- or @phpstan- prefixes)
  • EarlyExitSniff: New option ignoreTrailingIfWithOneInstruction
  • AssignmentInConditionSniff: New option ignoreAssignmentsInsideFunctionCalls (thanks to @nightlinus)
  • DuplicateSpacesSniff: New option ignoreSpacesInComment
  • LineLengthSniff: Speedup (thanks to @nightlinus)

Fixes

  • FullyQualifiedClassNameInAnnotationSniff: Does not report @template
  • ParentCallSpacingSniff: Fixed false positive
  • ReturnTypeHintSniff: Fixed false positive
  • ParameterTypeHintSniff: Fixed false positive
  • PropertyTypeHintSniff: Fixed false positive
  • MethodSpacingSniff: Fixed false positive
  • EarlyExitSniff: Fixed missing report
  • ConstantSpacingSniff: Fixed internal error