Skip to content

8.32.0

Latest

Choose a tag to compare

@kukulich kukulich released this 26 Nov 06:37
8.32.0
a3626af

🆕 New sniffs

  • SlevomatCodingStandard.TypeHints.RequireTrailingCommaInArrayShape: Enforces trailing commas in non-empty multi-line PHPDoc array shapes (thanks to @simPod)

🐛 Fixes

  • SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration: Recognize asymmetric visibility properties (thanks to @beberlei)
  • SlevomatCodingStandard.TypeHints.PropertyTypeHint: Check properties whose last modifier is readonly or asymmetric visibility (thanks to @youdie006)
  • Fix support of phpdoc-parser name nodes (thanks to @simPod)
  • SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation: Fixed false positive for type aliases used in type alias definitions (thanks to @sinemacula-ben)
  • SlevomatCodingStandard.Namespaces.UnusedUses: Fixed false positive for typed constant
  • SlevomatCodingStandard.Variables.UnusedVariable: Fixed false positive for assignment to a variable captured by reference in a closure
  • SlevomatCodingStandard.Classes.ClassMemberSpacing: Fixed false positive for properties with closures
  • SlevomatCodingStandard.Namespaces.NamespaceSpacing: Fixed false positive for PHPCS annotations before namespace (thanks to @lyn1dev)
  • SlevomatCodingStandard.Functions.RequireSingleLineCall: Fixed false positive for by-reference functions (thanks to @Cayan)
  • SlevomatCodingStandard.Functions.RequireMultiLineCall : Fixed false positive for by-reference functions (thanks to @Cayan)
  • Fixed multibyte line length in multiple sniffs (thanks to @Cayan)