WhiteSource Renovate
This PR contains the following updates:
Release Notes
slevomat/coding-standard
Compare Source
🐛 Fixes
- Improved
AnnotationTypeHelper::export() for callable in array
Compare Source
🐛 Fixes
SlevomatCodingStandard.Namespaces.UnusedUses: Improved detection of relative name in generic annotation
SlevomatCodingStandard.Classes.ClassConstantVisibility: Added support for final constants
SlevomatCodingStandard.Functions.RequireTrailingCommaInCall: Skip instances on same line as closing parenthesis (thanks to @donatj)
Compare Source
🐛 Fixes
SlevomatCodingStandard.Classes.ModernClassNameReference: Don't flag method declarations (thanks to @jrfnl)
SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration: Fixed false positive
SlevomatCodingStandard.ControlStructures.NewWithParentheses: Fixed false positive
- Appended logic in
ReferencedNameHelper for find names of class inside double quotes (thanks to @AIlkiv)
Compare Source
🐛 Fixes
UseSpacingSniff: Fixed false positive
TypeCastSniff: Fixed internal error
RequireConstructorPropertyPromotionSniff: Fixed false positives
ClassStructureSniff: Add missing magic methods (thanks to @jrfnl)
- Updated
phpstan/phpdoc-parser (thanks to @alexndlm)
Compare Source
🐛 Fixes
InlineDocCommentDeclarationSniff: Don't report missing assigment for $this
ParameterTypeHintSniff, ReturnTypeHintSniff, PropertyTypeHintSniff: Short nullable is now reported as useless annotation too
- Don't try to find references in double quoted string - it's difficult to parse it with PHPCS
Compare Source
🐛 Fixes
RequireConstructorPropertyPromotionSniff: Fixed false positive
UnusedUsesSniff: Fixed false positive
Compare Source
🐛 Fixes
RequireConstructorPropertyPromotionSniff: Fixed internal error
Compare Source
Compare Source
🐛 Fixes
RequireNonCapturingCatchSniff: Fixed false positive
ReturnTypeHintSniff: It knows unofficial void type hints
ReturnTypeHintSniff: Method returning value with void annotation is reported only
ParentCallSpacingSniff: Fixed false positive
- Fixed array shapes parsing
Compare Source
🐛 Fixes
UselessInheritDocCommentSniff: Fixed false positive
RequireNullSafeObjectOperatorSniff: Fixed false positives
UnusedVariableSniff: Fixed false positive
Compare Source
🐛 Fixes
UnusedUsesSniff: Fixed false positive
InlineDocCommentDeclarationSniff: Fixed false positive
- Fix: resolve false positive in
FunctionHelper::isMethod for functions defined within a class method (thanks to @aadmathijssen)
Compare Source
🐛 Fixes
ReturnTypeHintSniff: Fixed fixer for void in union type hint
UnusedUsesSniff: Fixed false positive
FunctionLengthSniff: Moved to Functions namespace, old sniff still exists and is marked as deprecated (thanks to @50bhan)
FunctionLengthSniff: Resolve off-by-one error (thanks to @aadmathijssen)
Compare Source
🐛 Fixes
InlineDocCommentDeclarationSniff: Fixed false positive
PropertySpacingSniff: Supports attributes (thanks to @dg)
ConstantSpacingSniff: Supports attributes (thanks to @dg)
Compare Source
🐛 Fixes
RequireNullSafeObjectOperatorSniff: Fixed false positives
UselessParenthesesSniff: Fixed false positive
Compare Source
🐛 Fixes
RequireConstructorPropertyPromotionSniff: Fixed false positive
BlockControlStructureSpacingSniff: Fixed false positive
Compare Source
🐛 Fixes
DisallowEmptyFunctionSniff: Fixed false positive
RequireNonCapturingCatchSniff: Improved fixer
Compare Source
🐛 Fixes
ParameterTypeHintSniff: Fixed false positive
PropertyTypeHintSniff: Fixed false positive
ReturnTypeHintSniff: Fixed false positive
NullableTypeForNullDefaultValueSniff: Fixed false positive
Compare Source
🐛 Fixes
DeclareStrictTypesSniff: Some errors were not reported
UnusedParameterSniff: Fixed false positive
RequireTrailingCommaInDeclarationSniff: Fixed false positive
Compare Source
🆕 New sniffs
RequireNonCapturingCatchSniff: Requires non-capturing catch when the variable with exception is not used
RequireNullSafeObjectOperatorSniff: Requires using ?-> operator
DisallowNullSafeObjectOperatorSniff: Disallows using ?-> operator
RequireTrailingCommaInDeclarationSniff: Enforces trailing commas in multi-line declarations
DisallowTrailingCommaInDeclarationSniff: Disallows trailing commas in multi-line declarations
RequireConstructorPropertyPromotionSniff: Requires use of constructor property promotion
DisallowConstructorPropertyPromotionSniff: Disallows usage of constructor property promotion
UnionTypeHintFormatSniff: Checks format of union type hints
DisallowNamedArgumentsSniff: Disallows usage of named arguments
DisallowTrailingCommaInCallSniff: Disallows trailing commas in multi-line calls
ForbiddenPublicPropertySniff: Disallows using public properties (thanks to @50bhan)
FunctionLengthSniff: Disallows long function (thanks to @50bhan)
🔧 Improvements
- Support for union type hints
- Support for
mixed and static type hint
- Support for
@phpstan-type, @psalm-type, @phpstan-import-type and @psalm-import-type annotations
ReturnTypeHintSniff: New option enableUnionTypeHint to enable support for union type hints
PropertyTypeHintSniff: New option enableUnionTypeHint to enable support for union type hints
ParameterTypeHintSniff: New option enableUnionTypeHint to enable support for union type hints
ReturnTypeHintSniff: New option enableMixedTypeHint to enable support for mixed type hint
PropertyTypeHintSniff: New option enableMixedTypeHint to enable support for mixed type hint
ParameterTypeHintSniff: New option enableMixedTypeHint to enable support for mixed type hint
ReturnTypeHintSniff: New option enableStaticTypeHint to enable support for static type hint
ReturnTypeHintSniff: Reports useless @phpcsSuppress
ParameterTypeHintSniff: Reports useless @phpcsSuppress
PropertyTypeHintSniff: Reports useless @phpcsSuppress
UnusedParameterSniff: Reports useless @phpcsSuppress
ModernClassNameReferenceSniff: New option enableOnObjects to enable ::class on all objects
NullableTypeForNullDefaultValueSniff: Support for mixed and union type hints
ReferenceUsedNamesOnlySniff: Improved fixer
BlockControlStructureSpacingSniff: Ignore if with alternative syntax
RequireTernaryOperatorSniff: Improved fixer
RequireMultiLineTernaryOperatorSniff: Support for more ternary operators
RequireMultiLineTernaryOperatorSniff: New option expressionsMinLength
BlockControlStructureSpacingSniff: Improved behaviour for case and default control structures
JumpStatementsSpacingSniff:: No errors for throw expressions
🐛 Fixes
NegationOperatorSpacingSniff: Fixed false positive
BlockControlStructureSpacingSniff: Fixed false positive
UselessParenthesesSniff: Fixed false positives
JumpStatementsSpacingSniff: Fixed false positive
RequireCombinedAssignmentOperatorSniff: Possible string offset should only report error - fixer is disabled to prevent fatal errors
NegationOperatorSpacing: Fix for magic constants (thanks to @carusogabriel)
RequireMultiLineTernaryOperatorSniff: Fixed false positives
RequireShortTernaryOperatorSniff: Fixed false positive
ReferenceUsedNamesOnlySniff: Fixed problem with incorrect case
StrictCallSniff: Fixed false positive
EarlyExitSniff: Fixed false positives
DeclareStrictTypesSniff: Fixer should not remove comment before
AlphabeticallySortedUsesSniff: Fixer should not remove comment before use
ClassStructureSniff: Fixed internal error
⚠️BC breaks
PropertyTypeHintSpacingSniff: Removed CODE_NO_SPACE_BEFORE_TYPE_HINT because it's not possible on PHP 8
DeclareStrictTypesSniff: Options renamed and modifed, see README
TrailingCommaInCallSniff renamed to RequireTrailingCommaInCallSniff
- Removed deprecated
UnusedPrivateElementsSniff
- Removed
FullyQualifiedClassNameAfterKeywordSniff
ReferenceUsedNamesOnlySniff: Removed option fullyQualifiedKeywords
BlockControlStructureSpacingSniff: Options renamed and modified, see README
JumpStatementsSpacingSniff: Options renamed and modified, see README
ParentCallSpacingSniff: Shorter options names, see README
- All helpers are marked as internal
UselessFunctionDocCommentSniff: Removed suppress support
Configuration
📅 Schedule: "before 3am on Monday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.
Uh oh!
There was an error while loading. Please reload this page.
WhiteSource Renovate
This PR contains the following updates:
^6.4->^7.0Release Notes
slevomat/coding-standard
v7.0.18Compare Source
🐛 Fixes
AnnotationTypeHelper::export()for callable in arrayv7.0.17Compare Source
🐛 Fixes
SlevomatCodingStandard.Namespaces.UnusedUses: Improved detection of relative name in generic annotationSlevomatCodingStandard.Classes.ClassConstantVisibility: Added support for final constantsSlevomatCodingStandard.Functions.RequireTrailingCommaInCall: Skip instances on same line as closing parenthesis (thanks to @donatj)v7.0.16Compare Source
🐛 Fixes
SlevomatCodingStandard.Classes.ModernClassNameReference: Don't flag method declarations (thanks to @jrfnl)SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration: Fixed false positiveSlevomatCodingStandard.ControlStructures.NewWithParentheses: Fixed false positiveReferencedNameHelperfor find names of class inside double quotes (thanks to @AIlkiv)v7.0.15Compare Source
🐛 Fixes
UseSpacingSniff: Fixed false positiveTypeCastSniff: Fixed internal errorRequireConstructorPropertyPromotionSniff: Fixed false positivesClassStructureSniff: Add missing magic methods (thanks to @jrfnl)phpstan/phpdoc-parser(thanks to @alexndlm)v7.0.14Compare Source
🐛 Fixes
InlineDocCommentDeclarationSniff: Don't report missing assigment for$thisParameterTypeHintSniff,ReturnTypeHintSniff,PropertyTypeHintSniff: Short nullable is now reported as useless annotation toov7.0.13Compare Source
🐛 Fixes
RequireConstructorPropertyPromotionSniff: Fixed false positiveUnusedUsesSniff: Fixed false positivev7.0.12Compare Source
🐛 Fixes
RequireConstructorPropertyPromotionSniff: Fixed internal errorv7.0.11Compare Source
v7.0.10Compare Source
🐛 Fixes
RequireNonCapturingCatchSniff: Fixed false positiveReturnTypeHintSniff: It knows unofficialvoidtype hintsReturnTypeHintSniff: Method returning value withvoidannotation is reported onlyParentCallSpacingSniff: Fixed false positivev7.0.9Compare Source
🐛 Fixes
UselessInheritDocCommentSniff: Fixed false positiveRequireNullSafeObjectOperatorSniff: Fixed false positivesUnusedVariableSniff: Fixed false positivev7.0.8Compare Source
🐛 Fixes
UnusedUsesSniff: Fixed false positiveInlineDocCommentDeclarationSniff: Fixed false positiveFunctionHelper::isMethodfor functions defined within a class method (thanks to @aadmathijssen)v7.0.7Compare Source
🐛 Fixes
ReturnTypeHintSniff: Fixed fixer forvoidin union type hintUnusedUsesSniff: Fixed false positiveFunctionLengthSniff: Moved toFunctionsnamespace, old sniff still exists and is marked as deprecated (thanks to @50bhan)FunctionLengthSniff: Resolve off-by-one error (thanks to @aadmathijssen)v7.0.6Compare Source
🐛 Fixes
InlineDocCommentDeclarationSniff: Fixed false positivePropertySpacingSniff: Supports attributes (thanks to @dg)ConstantSpacingSniff: Supports attributes (thanks to @dg)v7.0.5Compare Source
🐛 Fixes
RequireNullSafeObjectOperatorSniff: Fixed false positivesUselessParenthesesSniff: Fixed false positivev7.0.4Compare Source
🐛 Fixes
RequireConstructorPropertyPromotionSniff: Fixed false positiveBlockControlStructureSpacingSniff: Fixed false positivev7.0.3Compare Source
🐛 Fixes
DisallowEmptyFunctionSniff: Fixed false positiveRequireNonCapturingCatchSniff: Improved fixerv7.0.2Compare Source
🐛 Fixes
ParameterTypeHintSniff: Fixed false positivePropertyTypeHintSniff: Fixed false positiveReturnTypeHintSniff: Fixed false positiveNullableTypeForNullDefaultValueSniff: Fixed false positivev7.0.1Compare Source
🐛 Fixes
DeclareStrictTypesSniff: Some errors were not reportedUnusedParameterSniff: Fixed false positiveRequireTrailingCommaInDeclarationSniff: Fixed false positivev7.0.0Compare Source
🆕 New sniffs
RequireNonCapturingCatchSniff: Requires non-capturingcatchwhen the variable with exception is not usedRequireNullSafeObjectOperatorSniff: Requires using?->operatorDisallowNullSafeObjectOperatorSniff: Disallows using?->operatorRequireTrailingCommaInDeclarationSniff: Enforces trailing commas in multi-line declarationsDisallowTrailingCommaInDeclarationSniff: Disallows trailing commas in multi-line declarationsRequireConstructorPropertyPromotionSniff: Requires use of constructor property promotionDisallowConstructorPropertyPromotionSniff: Disallows usage of constructor property promotionUnionTypeHintFormatSniff: Checks format of union type hintsDisallowNamedArgumentsSniff: Disallows usage of named argumentsDisallowTrailingCommaInCallSniff: Disallows trailing commas in multi-line callsForbiddenPublicPropertySniff: Disallows using public properties (thanks to @50bhan)FunctionLengthSniff: Disallows long function (thanks to @50bhan)🔧 Improvements
mixedandstatictype hint@phpstan-type,@psalm-type,@phpstan-import-typeand@psalm-import-typeannotationsReturnTypeHintSniff: New optionenableUnionTypeHintto enable support for union type hintsPropertyTypeHintSniff: New optionenableUnionTypeHintto enable support for union type hintsParameterTypeHintSniff: New optionenableUnionTypeHintto enable support for union type hintsReturnTypeHintSniff: New optionenableMixedTypeHintto enable support formixedtype hintPropertyTypeHintSniff: New optionenableMixedTypeHintto enable support formixedtype hintParameterTypeHintSniff: New optionenableMixedTypeHintto enable support formixedtype hintReturnTypeHintSniff: New optionenableStaticTypeHintto enable support forstatictype hintReturnTypeHintSniff: Reports useless@phpcsSuppressParameterTypeHintSniff: Reports useless@phpcsSuppressPropertyTypeHintSniff: Reports useless@phpcsSuppressUnusedParameterSniff: Reports useless@phpcsSuppressModernClassNameReferenceSniff: New optionenableOnObjectsto enable::classon all objectsNullableTypeForNullDefaultValueSniff: Support formixedand union type hintsReferenceUsedNamesOnlySniff: Improved fixerBlockControlStructureSpacingSniff: Ignoreifwith alternative syntaxRequireTernaryOperatorSniff: Improved fixerRequireMultiLineTernaryOperatorSniff: Support for more ternary operatorsRequireMultiLineTernaryOperatorSniff: New optionexpressionsMinLengthBlockControlStructureSpacingSniff: Improved behaviour forcaseanddefaultcontrol structuresJumpStatementsSpacingSniff:: No errors forthrowexpressions🐛 Fixes
NegationOperatorSpacingSniff: Fixed false positiveBlockControlStructureSpacingSniff: Fixed false positiveUselessParenthesesSniff: Fixed false positivesJumpStatementsSpacingSniff: Fixed false positiveRequireCombinedAssignmentOperatorSniff: Possible string offset should only report error - fixer is disabled to prevent fatal errorsNegationOperatorSpacing: Fix for magic constants (thanks to @carusogabriel)RequireMultiLineTernaryOperatorSniff: Fixed false positivesRequireShortTernaryOperatorSniff: Fixed false positiveReferenceUsedNamesOnlySniff: Fixed problem with incorrect caseStrictCallSniff: Fixed false positiveEarlyExitSniff: Fixed false positivesDeclareStrictTypesSniff: Fixer should not remove comment beforeAlphabeticallySortedUsesSniff: Fixer should not remove comment beforeuseClassStructureSniff: Fixed internal errorPropertyTypeHintSpacingSniff: RemovedCODE_NO_SPACE_BEFORE_TYPE_HINTbecause it's not possible on PHP 8DeclareStrictTypesSniff: Options renamed and modifed, see READMETrailingCommaInCallSniffrenamed toRequireTrailingCommaInCallSniffUnusedPrivateElementsSniffFullyQualifiedClassNameAfterKeywordSniffReferenceUsedNamesOnlySniff: Removed optionfullyQualifiedKeywordsBlockControlStructureSpacingSniff: Options renamed and modified, see READMEJumpStatementsSpacingSniff: Options renamed and modified, see READMEParentCallSpacingSniff: Shorter options names, see READMEUselessFunctionDocCommentSniff: Removed suppress supportConfiguration
📅 Schedule: "before 3am on Monday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.