From 76aee9125a0a18b54e359782d41d2aedf243f4f4 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Mon, 17 Jun 2024 15:33:35 +0200 Subject: [PATCH 1/2] [TASK] rector: add php70 rule set Signed-off-by: Daniel Ziegenberg --- config/rector.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/rector.php b/config/rector.php index 2b8904db..4208436a 100644 --- a/config/rector.php +++ b/config/rector.php @@ -12,8 +12,7 @@ __DIR__ . '/../tests', ] ) - // uncomment to reach your current PHP version - // ->withPhpSets() + ->withPhpSets(php70: true) ->withRules( [ // AddVoidReturnTypeWhereNoReturnRector::class, From 739fd9957fc7199806360a38018ecdd1e43d0626 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Mon, 17 Jun 2024 21:21:11 +0200 Subject: [PATCH 2/2] fixup! [TASK] rector: add php70 rule set --- config/rector.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/rector.php b/config/rector.php index 4208436a..3dbdff23 100644 --- a/config/rector.php +++ b/config/rector.php @@ -3,6 +3,7 @@ declare(strict_types=1); use Rector\Config\RectorConfig; +use Rector\Set\ValueObject\SetList; use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector; return RectorConfig::configure() @@ -12,7 +13,7 @@ __DIR__ . '/../tests', ] ) - ->withPhpSets(php70: true) + ->withSets([SetList::PHP_70]) ->withRules( [ // AddVoidReturnTypeWhereNoReturnRector::class,