Releases: slevomat/coding-standard
Releases · slevomat/coding-standard
8.27.1
8.27.0
8.26.0
🔧 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
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