phpstan / extension-installer

Composer plugin for automatic installation of PHPStan extensions.
MIT License
391 stars 27 forks source link

chore(deps): update dependency slevomat/coding-standard to v7 #50

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 2 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Type Update Change
slevomat/coding-standard require-dev major ^6.4 -> ^7.0

Release Notes

slevomat/coding-standard ### [`v7.0.18`](https://togithub.com/slevomat/coding-standard/releases/7.0.18) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.17...7.0.18) ## 🐛 Fixes - Improved `AnnotationTypeHelper::export()` for callable in array ### [`v7.0.17`](https://togithub.com/slevomat/coding-standard/releases/7.0.17) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.16...7.0.17) ## 🐛 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](https://togithub.com/donatj)) ### [`v7.0.16`](https://togithub.com/slevomat/coding-standard/releases/7.0.16) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.15...7.0.16) ## 🐛 Fixes - `SlevomatCodingStandard.Classes.ModernClassNameReference`: Don't flag method declarations (thanks to [@​jrfnl](https://togithub.com/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](https://togithub.com/AIlkiv)) ### [`v7.0.15`](https://togithub.com/slevomat/coding-standard/releases/7.0.15) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.14...7.0.15) ## 🐛 Fixes - `UseSpacingSniff`: Fixed false positive - `TypeCastSniff`: Fixed internal error - `RequireConstructorPropertyPromotionSniff`: Fixed false positives - `ClassStructureSniff`: Add missing magic methods (thanks to [@​jrfnl](https://togithub.com/jrfnl)) - Updated `phpstan/phpdoc-parser` (thanks to [@​alexndlm](https://togithub.com/alexndlm)) ### [`v7.0.14`](https://togithub.com/slevomat/coding-standard/releases/7.0.14) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.13...7.0.14) ## 🐛 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 ### [`v7.0.13`](https://togithub.com/slevomat/coding-standard/releases/7.0.13) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.12...7.0.13) ## 🐛 Fixes - `RequireConstructorPropertyPromotionSniff`: Fixed false positive - `UnusedUsesSniff`: Fixed false positive ### [`v7.0.12`](https://togithub.com/slevomat/coding-standard/releases/7.0.12) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.11...7.0.12) ## 🐛 Fixes - `RequireConstructorPropertyPromotionSniff`: Fixed internal error ### [`v7.0.11`](https://togithub.com/slevomat/coding-standard/compare/7.0.10...7.0.11) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.10...7.0.11) ### [`v7.0.10`](https://togithub.com/slevomat/coding-standard/releases/7.0.10) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.9...7.0.10) ## 🐛 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 ### [`v7.0.9`](https://togithub.com/slevomat/coding-standard/releases/7.0.9) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.8...7.0.9) ## 🐛 Fixes - `UselessInheritDocCommentSniff`: Fixed false positive - `RequireNullSafeObjectOperatorSniff`: Fixed false positives - `UnusedVariableSniff`: Fixed false positive ### [`v7.0.8`](https://togithub.com/slevomat/coding-standard/releases/7.0.8) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.7...7.0.8) ## 🐛 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](https://togithub.com/aadmathijssen)) ### [`v7.0.7`](https://togithub.com/slevomat/coding-standard/releases/7.0.7) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.6...7.0.7) ## 🐛 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](https://togithub.com/50bhan)) - `FunctionLengthSniff`: Resolve off-by-one error (thanks to [@​aadmathijssen](https://togithub.com/aadmathijssen)) ### [`v7.0.6`](https://togithub.com/slevomat/coding-standard/releases/7.0.6) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.5...7.0.6) ## 🐛 Fixes - `InlineDocCommentDeclarationSniff`: Fixed false positive - `PropertySpacingSniff`: Supports attributes (thanks to [@​dg](https://togithub.com/dg)) - `ConstantSpacingSniff`: Supports attributes (thanks to [@​dg](https://togithub.com/dg)) ### [`v7.0.5`](https://togithub.com/slevomat/coding-standard/releases/7.0.5) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.4...7.0.5) ## 🐛 Fixes - `RequireNullSafeObjectOperatorSniff`: Fixed false positives - `UselessParenthesesSniff`: Fixed false positive ### [`v7.0.4`](https://togithub.com/slevomat/coding-standard/releases/7.0.4) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.3...7.0.4) ## 🐛 Fixes - `RequireConstructorPropertyPromotionSniff`: Fixed false positive - `BlockControlStructureSpacingSniff`: Fixed false positive ### [`v7.0.3`](https://togithub.com/slevomat/coding-standard/releases/7.0.3) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.2...7.0.3) ## 🐛 Fixes - `DisallowEmptyFunctionSniff`: Fixed false positive - `RequireNonCapturingCatchSniff`: Improved fixer ### [`v7.0.2`](https://togithub.com/slevomat/coding-standard/releases/7.0.2) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.1...7.0.2) ## 🐛 Fixes - `ParameterTypeHintSniff`: Fixed false positive - `PropertyTypeHintSniff`: Fixed false positive - `ReturnTypeHintSniff`: Fixed false positive - `NullableTypeForNullDefaultValueSniff`: Fixed false positive ### [`v7.0.1`](https://togithub.com/slevomat/coding-standard/releases/7.0.1) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/7.0.0...7.0.1) ## 🐛 Fixes - `DeclareStrictTypesSniff`: Some errors were not reported - `UnusedParameterSniff`: Fixed false positive - `RequireTrailingCommaInDeclarationSniff`: Fixed false positive ### [`v7.0.0`](https://togithub.com/slevomat/coding-standard/releases/7.0.0) [Compare Source](https://togithub.com/slevomat/coding-standard/compare/6.4.1...7.0.0) ## 🆕 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](https://togithub.com/50bhan)) - `FunctionLengthSniff`: Disallows long function (thanks to [@​50bhan](https://togithub.com/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](https://togithub.com/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](https://togithub.com/slevomat/coding-standard#slevomatcodingstandardtypehintsdeclarestricttypes-) - `TrailingCommaInCallSniff` renamed to `RequireTrailingCommaInCallSniff` - Removed deprecated `UnusedPrivateElementsSniff` - Removed `FullyQualifiedClassNameAfterKeywordSniff` - `ReferenceUsedNamesOnlySniff`: Removed option `fullyQualifiedKeywords` - `BlockControlStructureSpacingSniff`: Options renamed and modified, see [README](https://togithub.com/slevomat/coding-standard#slevomatcodingstandardcontrolstructuresblockcontrolstructurespacing-) - `JumpStatementsSpacingSniff`: Options renamed and modified, see [README](https://togithub.com/slevomat/coding-standard#slevomatcodingstandardcontrolstructuresjumpstatementsspacing-) - `ParentCallSpacingSniff`: Shorter options names, see [README](https://togithub.com/slevomat/coding-standard#slevomatcodingstandardclassesparentcallspacing-) - 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.