Skip to content

Releases: slevomat/coding-standard

8.27.1

25 Jan 16:29
8.27.1
29bdaee

Choose a tag to compare

🐛 Fixes

  • Fixed DocCommentHelper::findDocCommentOwnerPointer()
  • Fixed ignoring some errors with #[Override] attribute (thanks to @greg0ire)

8.27.0

25 Jan 13:09
8.27.0
4ef8e3e

Choose a tag to compare

🔧 Improvements

  • Disable some errors for properties with #[Override] attribute (thanks to @kkmuffme)
  • Disable some errors for methods with #[Override] attribute (thanks to @greg0ire)

🐛 Fixes

  • Do not remove true/false phpdoc if type hint is bool (thanks to @kkmuffme)

8.26.0

21 Dec 18:05
8.26.0
d247cdc

Choose a tag to compare

🔧 Improvements

  • SlevomatCodingStandard.Classes.ClassKeywordOrder: New sniff (thanks to @kamil-zacek)

🐛 Fixes

  • SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator: Workaround for missing property hooks support in PHPCS

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