From 55dc1dcfb26fbcae228a2f29beca46e90229b047 Mon Sep 17 00:00:00 2001 From: PedroTroller Date: Thu, 22 Feb 2024 18:28:59 +0100 Subject: [PATCH] chore: upgrade rector configuration --- rector.php | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/rector.php b/rector.php index 15405a8b..23dd6369 100644 --- a/rector.php +++ b/rector.php @@ -3,29 +3,10 @@ declare(strict_types=1); use Rector\Config\RectorConfig; -use Rector\Core\ValueObject\PhpVersion; -use Rector\Set\ValueObject\LevelSetList; +use Rector\ValueObject\PhpVersion; -return static function (RectorConfig $rectorConfig): void { - $rectorConfig - ->paths( - [ - __DIR__.'/src', - ] - ) - ; - - $rectorConfig - ->phpVersion( - PhpVersion::PHP_80 - ) - ; - - $rectorConfig - ->sets( - [ - LevelSetList::UP_TO_PHP_80, - ] - ) - ; -}; +return RectorConfig::configure() + ->withPhpVersion(PhpVersion::PHP_80) + ->withPhpSets(php80: true) + ->withPaths([__DIR__.'/src']) +;