Releases: slevomat/coding-standard
Releases · slevomat/coding-standard
8.23.0
8.22.1
8.22.0
🔧 Improvements
SlevomatCodingStandard.Functions.UnusedParameter
: New optionallowedParameterPatterns
to suppress check for specific parameter names (thanks to @claytonrcarter)
🐛 Fixes
SlevomatCodingStandard.Attributes.AttributesOrder
: Fixed alphabetical sortingSlevomatCodingStandard.Functions.DisallowEmptyFunction
: Private or protected constructor should not be reportedSlevomatCodingStandard.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
8.21.0
🔧 Improvements
SlevomatCodingStandard.Classes.RequireMultiLineMethodSignature
: New optionwithPromotedProperties
(thanks to @vrana)- Improved support for non-official type hints (thanks to @kkmuffme)
🐛 Fixes
SlevomatCodingStandard.Classes.ConstantSpacing
: Some fixes- Fix
void
cannot be changed tonull
andnever
/void
cannot be used in a union (thanks to @kkmuffme)
8.20.0
🔧 Improvements
SlevomatCodingStandard.TypeHints.ParameterTypeHint
: Don't report missing native type hint when method has#[Override]
attributeSlevomatCodingStandard.Classes.TraitUseSpacing
: Allownull
inlinesCountAfterLastUse
option (thanks to @vrana)SlevomatCodingStandard.Classes.PropertySpacing
: New optionsminLinesCountBeforeMultiline
andmaxLinesCountBeforeMultiline
(thanks to @vojtech-dobes)SlevomatCodingStandard.Classes.ConstantSpacing
: New optionsminLinesCountBeforeMultiline
andmaxLinesCountBeforeMultiline
(thanks to @vojtech-dobes)
🐛 Fixes
- Attributes should be processed by FQN
8.19.1
8.19.0
🔧 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 positiveSlevomatCodingStandard.Classes.ClassMemberSpacing
: Prevent deleting unexpected code/comments (thanks to @maryo)SlevomatCodingStandard.Complexity.Cognitive
:do...while
loop should only increment once (not for both theT_DO
andT_WHILE
) (thanks to @bkdotcom)SlevomatCodingStandard.TypeHints.ClassConstantTypeHint
: New optionfixableNativeTypeHint
- 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
🐛 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