Releases: slevomat/coding-standard
Releases · slevomat/coding-standard
8.28.1
🐛 Fixes
SlevomatCodingStandard.ControlStructures.NewWithoutParentheses: Fix to allow empty parentheses when followed by member access operators for PHP 8.4+ chainingSlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly: Use existing alias (thanks to @Khartir)- Fixed undefined array key in
ReferencedNameHelperwhen processing fully-qualified names in strings (thanks to @AlexSkrypnyk)
8.28.0
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