Skip to content

Releases: slevomat/coding-standard

8.23.0

17 Sep 09:23
8.23.0
ba476e9
Compare
Choose a tag to compare

🔧 Improvements

8.22.1

13 Sep 08:56
8.22.1
1dd80bf
Compare
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
Compare
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
Compare
Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: Fixed false positive

8.21.0

31 Aug 07:45
8.21.0
51da0ac
Compare
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
Compare
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
Compare
Choose a tag to compare

🐛 Fixes

  • Fix properties detection in some sniffs
  • Improved indentation processing

8.19.0

07 Jun 15:24
8.19.0
9cc5050
Compare
Choose a tag to compare

🔧 Improvements

  • Support of PHP 8.4 properties
    • Asymetric visibility supported
    • final/abstract properties supported
    • Property hooks should not break any sniff

🐛 Fixes

  • SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed: Fixed false positive
  • SlevomatCodingStandard.Classes.ClassMemberSpacing: Prevent deleting unexpected code/comments (thanks to @maryo)
  • SlevomatCodingStandard.Complexity.Cognitive: do...while loop should only increment once (not for both the T_DO and T_WHILE) (thanks to @bkdotcom)
  • SlevomatCodingStandard.TypeHints.ClassConstantTypeHint: New option fixableNativeTypeHint - it's possible to fix only private constants (thanks to @maryo)
  • SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion: Properly autofixing when argument name has an attribute (thanks to @maryo)

8.18.1

22 May 14:35
8.18.1
06b18b3
Compare
Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration: Fix error when no code is found after @var (thanks to @AegirLeet)
  • SlevomatCodingStandard.PHP.UselessParentheses: Fixed false positive for bitwise not operator

8.18.0

01 May 09:55
8.18.0
f3b23cb
Compare
Choose a tag to compare

🔧 Improvements

  • SlevomatCodingStandard.Classes.ClassStructure: Support for custom method groups based on method name prefix (thanks to @maryo)

🐛 Fixes

  • SlevomatCodingStandard.Functions.RequireMultiLineCall: Fix reporting multiline call which exactly fits into line length limit (thanks to @maryo)