2.8.0
Fixes
PSR2R.Commenting.DocBlock: skip fully-typed methods. Methods whose parameters and return type are all natively typed no longer require a docblock, reducing noise on modern PHP 8.1+ codebases.PSR2R.WhiteSpace.DocBlockAlignment: avoid a PHPCBF max-loop conflict withPSR2R.WhiteSpace.TabIndentwhen fixing over-indented docblocks. The fixer now keeps structural docblock indentation tab-based instead of alternating between spaces and tabs. #43
Improvements
- Bumped
php-collective/code-snifferto^0.6.0, picking up its upstream fixes (including theDocBlockParamAllowDefaultValuepositional-mismatch fix and additional type-safety improvements across sniffs). - Enabled 22 additional sniffs to stay aligned with
php-collective/code-sniffer0.6:- Universal —
AnonClassKeywordSpacing,FirstClassCallableSpacing,Operators.TypeSeparatorSpacing,Attributes.BracketSpacing,Attributes.DisallowAttributeParentheses,Attributes.TrailingComma,ControlStructures.DisallowAlternativeSyntax,CodeAnalysis.NoEchoSprintf,CodeAnalysis.ConstructorDestructorReturn,CodeAnalysis.ForeachUniqueAssignment,CodeAnalysis.StaticInFinalClass - SlevomatCodingStandard —
Arrays.ArrayAccess,Attributes.AttributeAndTargetSpacing,Attributes.RequireAttributeAfterDocComment,Classes.BackedEnumTypeSpacing,Classes.EnumCaseSpacing,Classes.ClassMemberSpacing,Functions.NamedArgumentSpacing,ControlStructures.LanguageConstructWithParentheses,PHP.ForbiddenClasses - Squiz —
PHP.DisallowSizeFunctionsInLoops,WhiteSpace.FunctionOpeningBraceSpace
- Universal —
Full Changelog: 2.7.1...2.8.0