Releases: slevomat/coding-standard
Releases · slevomat/coding-standard
8.24.0
🔧 Improvements
SlevomatCodingStandard.Commenting.RequireOneDocCommentSniff: New sniff (thanks to @kamil-zacek)SlevomatCodingStandard.PHP.UselessParentheses: Checks useless parentheses around(new class())->f()via new optionenableCheckAroundNew(thanks to @vrana)SlevomatCodingStandard.Classes.ClassStructure: Support for suffix filtering (thanks to @DjLeChuck)
🐛 Fixes
SlevomatCodingStandard.PHP.ForbiddenClasses: Fixed internal errorsSlevomatCodingStandard.TypeHints.ClassConstantTypeHint:@var class-stringis not useless
8.23.0
8.22.1
8.22.0
🔧 Improvements
SlevomatCodingStandard.Functions.UnusedParameter: New optionallowedParameterPatternsto 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
voidcannot be changed tonullandnever/voidcannot 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: AllownullinlinesCountAfterLastUseoption (thanks to @vrana)SlevomatCodingStandard.Classes.PropertySpacing: New optionsminLinesCountBeforeMultilineandmaxLinesCountBeforeMultiline(thanks to @vojtech-dobes)SlevomatCodingStandard.Classes.ConstantSpacing: New optionsminLinesCountBeforeMultilineandmaxLinesCountBeforeMultiline(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/abstractproperties 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...whileloop should only increment once (not for both theT_DOandT_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