diff --git a/Build/rector/config.php b/Build/rector/config.php index 1cb7c9b9..e28a9300 100644 --- a/Build/rector/config.php +++ b/Build/rector/config.php @@ -3,8 +3,6 @@ declare(strict_types=1); use Rector\Config\RectorConfig; -use Rector\PHPUnit\Set\PHPUnitSetList; -use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; return RectorConfig::configure() @@ -15,11 +13,8 @@ __DIR__ . '/../../tests', ] ) + ->withComposerBased() ->withSets([ - // Rector sets - - LevelSetList::UP_TO_PHP_72, - // SetList::CODE_QUALITY, // SetList::CODING_STYLE, // SetList::DEAD_CODE, @@ -28,10 +23,5 @@ // SetList::NAMING, // SetList::PRIVATIZATION, SetList::TYPE_DECLARATION, - - // PHPUnit sets - - PHPUnitSetList::PHPUNIT_80, - // PHPUnitSetList::PHPUNIT_CODE_QUALITY, ]) ->withImportNames(true, true, false); diff --git a/composer.json b/composer.json index efd3911e..d1f01abd 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "phpstan/phpstan-strict-rules": "1.6.2 || 2.0.12", "phpunit/phpunit": "8.5.53", "rawr/phpunit-data-provider": "3.3.1", - "rector/rector": "1.2.10 || 2.6.1", + "rector/rector": "1.2.10 || 2.6.2", "rector/type-perfect": "1.0.0 || 2.1.4", "squizlabs/php_codesniffer": "4.0.4", "thecodingmachine/phpstan-safe-rule": "1.2.0 || 1.4.7"