Releases: slevomat/coding-standard
Releases · slevomat/coding-standard
8.25.1
8.25.0
🔧 Improvements
SlevomatCodingStandard.Functions.RequireMultiLineCall: New optionminParametersCount(thanks to @parth391)SlevomatCodingStandard.Functions.RequireMultiLineCall: New optionexcludedCallPatterns(thanks to @parth391)SlevomatCodingStandard.Classes.RequireMultiLineMethodSignature: New optionwithParametersWithAttributesSlevomatCodingStandard.PHP.UselessParentheses: OptionenableCheckAroundNewis disabled if target PHP version is lower 8.4- Support
$thisas 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 positiveSlevomatCodingStandard.Complexity.Cognitive: Fixed internal error for closures
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