From a67cc0d8d6a739cac216c2adfd8a80efd926c748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20M=C3=BCller?= <2566282+brotkrueml@users.noreply.github.com> Date: Sun, 4 Feb 2024 10:30:42 +0100 Subject: [PATCH] chore: update rector to 0.19.5 --- composer.json | 2 +- rector.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 4f06afc..7948fb4 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "phpstan/extension-installer": "^1.3", "phpstan/phpstan": "1.10.57", "phpunit/phpunit": "^9.6", - "rector/rector": "0.19.1", + "rector/rector": "0.19.5", "symfony/yaml": "^5.4 || ^6.4 || ^7.0", "symplify/phpstan-rules": "^12.4", "tomasvotruba/cognitive-complexity": "^0.2.3", diff --git a/rector.php b/rector.php index 5002a1c..e66db2e 100644 --- a/rector.php +++ b/rector.php @@ -3,7 +3,7 @@ declare(strict_types=1); use Rector\Config\RectorConfig; -use Rector\Core\ValueObject\PhpVersion; +use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector; use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector; use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector; use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\ReplaceTestAnnotationWithPrefixedFunctionRector; @@ -11,6 +11,7 @@ use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; use Rector\TypeDeclaration\Rector\FunctionLike\AddReturnTypeDeclarationFromYieldsRector; +use Rector\ValueObject\PhpVersion; return static function (RectorConfig $config): void { $config->import(LevelSetList::UP_TO_PHP_74); @@ -36,5 +37,6 @@ ], PreferPHPUnitThisCallRector::class, ReplaceTestAnnotationWithPrefixedFunctionRector::class, + UnwrapFutureCompatibleIfPhpVersionRector::class, ]); };