Skip to content

Releases: slevomat/coding-standard

8.25.1

25 Nov 18:08
8.25.1
4caa5ec

Choose a tag to compare

🐛 Fixes

  • Slevomat.Classes.DisallowMultiPropertyDefinition: Fixed for property hooks

8.25.0

22 Nov 10:57
8.25.0
3ce4daf

Choose a tag to compare

🔧 Improvements

  • SlevomatCodingStandard.Functions.RequireMultiLineCall: New option minParametersCount (thanks to @parth391)
  • SlevomatCodingStandard.Functions.RequireMultiLineCall: New option excludedCallPatterns (thanks to @parth391)
  • SlevomatCodingStandard.Classes.RequireMultiLineMethodSignature: New option withParametersWithAttributes
  • SlevomatCodingStandard.PHP.UselessParentheses: Option enableCheckAroundNew is disabled if target PHP version is lower 8.4
  • Support $this as a valid traversable parameter type (thanks to @alies-dev)
  • Fix typo in comment (thanks to @vrana)
  • Improved documentation (thanks to @jrfnl)

🐛 Fixes

  • SlevomatCodingStandard.Whitespaces.DuplicateSpaces: Fixed false positive
  • SlevomatCodingStandard.Complexity.Cognitive: Fixed internal error for closures

8.24.0

17 Oct 14:46
8.24.0
08e7989

Choose a tag to compare

🔧 Improvements

  • SlevomatCodingStandard.Commenting.RequireOneDocCommentSniff: New sniff (thanks to @kamil-zacek)
  • SlevomatCodingStandard.PHP.UselessParentheses: Checks useless parentheses around (new class())->f() via new option enableCheckAroundNew (thanks to @vrana)
  • SlevomatCodingStandard.Classes.ClassStructure: Support for suffix filtering (thanks to @DjLeChuck)

🐛 Fixes

  • SlevomatCodingStandard.PHP.ForbiddenClasses: Fixed internal errors
  • SlevomatCodingStandard.TypeHints.ClassConstantTypeHint: @var class-string is not useless

8.23.0

17 Sep 09:23
8.23.0
ba476e9

Choose a tag to compare

🔧 Improvements

8.22.1

13 Sep 08:56
8.22.1
1dd80bf

Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.Functions.StaticClosure: Fixed false positive when $this is the last token

8.22.0

06 Sep 09:55
8.22.0
a4cef98

Choose a tag to compare

🔧 Improvements

  • SlevomatCodingStandard.Functions.UnusedParameter: New option allowedParameterPatterns to suppress check for specific parameter names (thanks to @claytonrcarter)

🐛 Fixes

  • SlevomatCodingStandard.Attributes.AttributesOrder: Fixed alphabetical sorting
  • SlevomatCodingStandard.Functions.DisallowEmptyFunction: Private or protected constructor should not be reported
  • SlevomatCodingStandard.TypeHints.ReturnTypeHint: Report missing type hint in abstract methods (thanks to @vrana)
  • Fixed deprecated errors in PHP 8.5
  • Fixed attributes parsing

8.21.1

31 Aug 13:34
8.21.1
2b801e9

Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: Fixed false positive

8.21.0

31 Aug 07:45
8.21.0
51da0ac

Choose a tag to compare

🔧 Improvements

  • SlevomatCodingStandard.Classes.RequireMultiLineMethodSignature: New option withPromotedProperties (thanks to @vrana)
  • Improved support for non-official type hints (thanks to @kkmuffme)

🐛 Fixes

  • SlevomatCodingStandard.Classes.ConstantSpacing: Some fixes
  • Fix void cannot be changed to null and never/void cannot be used in a union (thanks to @kkmuffme)

8.20.0

26 Jul 15:51
8.20.0

Choose a tag to compare

🔧 Improvements

  • SlevomatCodingStandard.TypeHints.ParameterTypeHint: Don't report missing native type hint when method has #[Override] attribute
  • SlevomatCodingStandard.Classes.TraitUseSpacing: Allow null in linesCountAfterLastUse option (thanks to @vrana)
  • SlevomatCodingStandard.Classes.PropertySpacing: New options minLinesCountBeforeMultiline and maxLinesCountBeforeMultiline (thanks to @vojtech-dobes)
  • SlevomatCodingStandard.Classes.ConstantSpacing: New options minLinesCountBeforeMultiline and maxLinesCountBeforeMultiline (thanks to @vojtech-dobes)

🐛 Fixes

  • Attributes should be processed by FQN

8.19.1

09 Jun 18:11
8.19.1
458d665

Choose a tag to compare

🐛 Fixes

  • Fix properties detection in some sniffs
  • Improved indentation processing