This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
[TASK] Update slevomat/coding-standard (^6.4 => ^7.0) #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^6.4
->^7.0
Release Notes
slevomat/coding-standard
v7.0.16
Compare Source
🐛 Fixes
SlevomatCodingStandard.Classes.ModernClassNameReference
: Don't flag method declarations (thanks to @jrfnl)SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration
: Fixed false positiveSlevomatCodingStandard.ControlStructures.NewWithParentheses
: Fixed false positiveReferencedNameHelper
for find names of class inside double quotes (thanks to @AIlkiv)v7.0.15
Compare 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.14
Compare Source
🐛 Fixes
InlineDocCommentDeclarationSniff
: Don't report missing assigment for$this
ParameterTypeHintSniff
,ReturnTypeHintSniff
,PropertyTypeHintSniff
: Short nullable is now reported as useless annotation toov7.0.13
Compare Source
🐛 Fixes
RequireConstructorPropertyPromotionSniff
: Fixed false positiveUnusedUsesSniff
: Fixed false positivev7.0.12
Compare Source
🐛 Fixes
RequireConstructorPropertyPromotionSniff
: Fixed internal errorv7.0.11
Compare Source
v7.0.10
Compare Source
🐛 Fixes
RequireNonCapturingCatchSniff
: Fixed false positiveReturnTypeHintSniff
: It knows unofficialvoid
type hintsReturnTypeHintSniff
: Method returning value withvoid
annotation is reported onlyParentCallSpacingSniff
: Fixed false positivev7.0.9
Compare Source
🐛 Fixes
UselessInheritDocCommentSniff
: Fixed false positiveRequireNullSafeObjectOperatorSniff
: Fixed false positivesUnusedVariableSniff
: Fixed false positivev7.0.8
Compare Source
🐛 Fixes
UnusedUsesSniff
: Fixed false positiveInlineDocCommentDeclarationSniff
: Fixed false positiveFunctionHelper::isMethod
for functions defined within a class method (thanks to @aadmathijssen)v7.0.7
Compare Source
🐛 Fixes
ReturnTypeHintSniff
: Fixed fixer forvoid
in union type hintUnusedUsesSniff
: Fixed false positiveFunctionLengthSniff
: Moved toFunctions
namespace, old sniff still exists and is marked as deprecated (thanks to @50bhan)FunctionLengthSniff
: Resolve off-by-one error (thanks to @aadmathijssen)v7.0.6
Compare Source
🐛 Fixes
InlineDocCommentDeclarationSniff
: Fixed false positivePropertySpacingSniff
: Supports attributes (thanks to @dg)ConstantSpacingSniff
: Supports attributes (thanks to @dg)v7.0.5
Compare Source
🐛 Fixes
RequireNullSafeObjectOperatorSniff
: Fixed false positivesUselessParenthesesSniff
: Fixed false positivev7.0.4
Compare Source
🐛 Fixes
RequireConstructorPropertyPromotionSniff
: Fixed false positiveBlockControlStructureSpacingSniff
: Fixed false positivev7.0.3
Compare Source
🐛 Fixes
DisallowEmptyFunctionSniff
: Fixed false positiveRequireNonCapturingCatchSniff
: Improved fixerv7.0.2
Compare Source
🐛 Fixes
ParameterTypeHintSniff
: Fixed false positivePropertyTypeHintSniff
: Fixed false positiveReturnTypeHintSniff
: Fixed false positiveNullableTypeForNullDefaultValueSniff
: Fixed false positivev7.0.1
Compare Source
🐛 Fixes
DeclareStrictTypesSniff
: Some errors were not reportedUnusedParameterSniff
: Fixed false positiveRequireTrailingCommaInDeclarationSniff
: Fixed false positivev7.0.0
Compare Source
🆕 New sniffs
RequireNonCapturingCatchSniff
: Requires non-capturingcatch
when 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
mixed
andstatic
type hint@phpstan-type
,@psalm-type
,@phpstan-import-type
and@psalm-import-type
annotationsReturnTypeHintSniff
: New optionenableUnionTypeHint
to enable support for union type hintsPropertyTypeHintSniff
: New optionenableUnionTypeHint
to enable support for union type hintsParameterTypeHintSniff
: New optionenableUnionTypeHint
to enable support for union type hintsReturnTypeHintSniff
: New optionenableMixedTypeHint
to enable support formixed
type hintPropertyTypeHintSniff
: New optionenableMixedTypeHint
to enable support formixed
type hintParameterTypeHintSniff
: New optionenableMixedTypeHint
to enable support formixed
type hintReturnTypeHintSniff
: New optionenableStaticTypeHint
to enable support forstatic
type hintReturnTypeHintSniff
: Reports useless@phpcsSuppress
ParameterTypeHintSniff
: Reports useless@phpcsSuppress
PropertyTypeHintSniff
: Reports useless@phpcsSuppress
UnusedParameterSniff
: Reports useless@phpcsSuppress
ModernClassNameReferenceSniff
: New optionenableOnObjects
to enable::class
on all objectsNullableTypeForNullDefaultValueSniff
: Support formixed
and union type hintsReferenceUsedNamesOnlySniff
: Improved fixerBlockControlStructureSpacingSniff
: Ignoreif
with alternative syntaxRequireTernaryOperatorSniff
: Improved fixerRequireMultiLineTernaryOperatorSniff
: Support for more ternary operatorsRequireMultiLineTernaryOperatorSniff
: New optionexpressionsMinLength
BlockControlStructureSpacingSniff
: Improved behaviour forcase
anddefault
control structuresJumpStatementsSpacingSniff
:: No errors forthrow
expressions🐛 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 beforeuse
ClassStructureSniff
: Fixed internal errorPropertyTypeHintSpacingSniff
: RemovedCODE_NO_SPACE_BEFORE_TYPE_HINT
because it's not possible on PHP 8DeclareStrictTypesSniff
: Options renamed and modifed, see READMETrailingCommaInCallSniff
renamed toRequireTrailingCommaInCallSniff
UnusedPrivateElementsSniff
FullyQualifiedClassNameAfterKeywordSniff
ReferenceUsedNamesOnlySniff
: Removed optionfullyQualifiedKeywords
BlockControlStructureSpacingSniff
: Options renamed and modified, see READMEJumpStatementsSpacingSniff
: Options renamed and modified, see READMEParentCallSpacingSniff
: Shorter options names, see READMEUselessFunctionDocCommentSniff
: Removed suppress supportConfiguration
📅 Schedule: At any time (no schedule defined).
🚦 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.