From 7e93012f86fd783e0728da1ef4f411e681732ceb Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 12 Nov 2024 22:18:46 +0100 Subject: [PATCH] fixup! Fix deprecated ParametersAcceptorSelector::selectSingle() since PHPStan 1.12.5 (#230) --- composer.json | 4 ++-- src/Set/ValueObject/DowngradeLevelSetList.php | 5 ++--- src/Set/ValueObject/DowngradeSetList.php | 5 ++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index b2b4e3dd..3236c8e5 100644 --- a/composer.json +++ b/composer.json @@ -12,13 +12,13 @@ "phpstan/phpstan-webmozart-assert": "^1.2", "phpunit/phpunit": "^10.5", "rector/rector-src": "dev-main", - "rector/type-perfect": "^0.1.8", + "rector/type-perfect": "^1.0", "symplify/easy-coding-standard": "^12.3", "symplify/phpstan-extensions": "^11.4", "symplify/phpstan-rules": "^13.0", "symplify/rule-doc-generator": "^12.2", "symplify/vendor-patches": "^11.3", - "tomasvotruba/class-leak": "^0.2.13", + "tomasvotruba/class-leak": "^1.0", "tracy/tracy": "^2.10" }, "autoload": { diff --git a/src/Set/ValueObject/DowngradeLevelSetList.php b/src/Set/ValueObject/DowngradeLevelSetList.php index 8cad995e..4c3e1e28 100644 --- a/src/Set/ValueObject/DowngradeLevelSetList.php +++ b/src/Set/ValueObject/DowngradeLevelSetList.php @@ -4,12 +4,11 @@ namespace Rector\Set\ValueObject; -use Rector\Set\Contract\SetListInterface; - /** * @api + * @deprecated use ->withDowngradeSets() in rector.php instead */ -final class DowngradeLevelSetList implements SetListInterface +final class DowngradeLevelSetList { /** * @var string diff --git a/src/Set/ValueObject/DowngradeSetList.php b/src/Set/ValueObject/DowngradeSetList.php index 7cb153b8..6ed78711 100644 --- a/src/Set/ValueObject/DowngradeSetList.php +++ b/src/Set/ValueObject/DowngradeSetList.php @@ -4,12 +4,11 @@ namespace Rector\Set\ValueObject; -use Rector\Set\Contract\SetListInterface; - /** * @api + * @deprecated use ->withDowngradeSets() in rector.php instead */ -final class DowngradeSetList implements SetListInterface +final class DowngradeSetList { /** * @var string