Releases: slevomat/coding-standard
Releases · slevomat/coding-standard
8.6.3
🐛 Fixes
Slevomat.Namespaces.ReferenceUsedNamesOnly
: Fixed fixer when there's conflict withSlevomat.Namespaces.UnusedUses
SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation
: Fixed false positives forint<0, max>
andint<min, 100>
SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing
: Fixed false positive for comment after attribute
8.6.2
8.6.1
🔧 Improvements
- Support of
phpstan/phpdoc-parser
1.12.0
🐛 Fixes
SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation
: Fixed false positives for global constantsSlevomatCodingStandard.Commenting.InlineDocCommentDeclaration
: Fixed false positives for constants
8.6.0
🆕 New sniffs
- Added
SlevomatCodingStandard.Attributes.AttributesOrder
- Added
SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing
- Added
SlevomatCodingStandard.Attributes.DisallowMultipleAttributesPerLine
- Added
SlevomatCodingStandard.Attributes.DisallowAttributesJoining
(thanks to @michnovka) - Added
SlevomatCodingStandard.Attributes.RequireAttributeAfterDocComment
🔧 Improvements
- Support of
phpstan/phpdoc-parser
1.11.0 - Support for
@phpstan-self-out
/@phpstan-this-out
- Support for
@param-out
annotation` - Support for
@template
with default value - Add
dev
Composer keyword (thanks to @GaryJones)
🐛 Fixes
- Improved detection of references in double quotes strings
8.5.2
🐛 Fixes
SlevomatCodingStandard.TypeHints.PropertyTypeHint
: Fixed false positives whenenableUnionTypeHint
is disabled andenableIntersectionTypeHint
is enabledSlevomatCodingStandard.TypeHints.ParameterTypeHint
: Fixed false positives whenenableUnionTypeHint
is disabled andenableIntersectionTypeHint
is enabledSlevomatCodingStandard.TypeHints.ReturnTypeHint
: Fixed false positives whenenableUnionTypeHint
is disabled andenableIntersectionTypeHint
is enabled
8.5.1
8.5.0
🔧 Improvements
- PHP 8.2: Support for standalone
null
,true
andfalse
type hints SlevomatCodingStandard.PHP.RequireExplicitAssertion
: Improved support for native simple typesSlevomatCodingStandard.PHP.RequireExplicitAssertion
: New optionenableIntegerRanges
SlevomatCodingStandard.PHP.RequireExplicitAssertion
: New optionenableAdvancedStringTypes
- Support of
phpstan/phpdoc-parser
1.8.0
🐛 Fixes
SlevomatCodingStandard.Classes.PropertyDeclaration
: Fixed false positiveSlevomatCodingStandard.PHP.RequireExplicitAssertion
: Fixed false positiveSlevomatCodingStandard.ControlStructures.DisallowYodaComparison/RequireYodaComparison
: Fixed support for condition in arrow functionSlevomatCodingStandard.Classes.DisallowMultiPropertyDefinition
: Fixed false positives for old array definition styleSlevomatCodingStandard.Variables.UselessVariable
: Fixed false positives
8.4.0
🔧 Improvements
- Support of
phpstan/phpdoc-parser
1.7.0
🐛 Fixes
- Fixed detection of some PHP 8.1 types
SlevomatCodingStandard.PHP.RequireNowdoc
: Accepts escaped sequences (thanks to @dg)SlevomatCodingStandard.Functions.RequireSingleLineCall
: Skip calls with multi-line double-quoted string (thanks to @schlndh)SlevomatCodingStandard.PHP.UselessParentheses
: Fixed false positive withxor
SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator
: Try to ignore string offsets
8.3.0
🆕 New sniffs
- Added
SlevomatCodingStandard.Complexity.Cognitive
(thanks to @bkdotcom) - Added
SlevomatCodingStandard.Files.FileLength
(thanks to @bkdotcom) - Added
SlevomatCodingStandard.Classes.ClassLength
(thanks to @bkdotcom)
🐛 Fixes
SlevomatCodingStandard.PHP.RequireExplicitAssertion
: Do not throw awaystatic
type (thanks to @simPod)