ci: update Rector config

This commit is contained in:
Ben Goldsworthy 2021-05-02 21:24:59 +01:00
parent a5e4764a35
commit 7d72930899

View file

@ -3,9 +3,9 @@
declare(strict_types=1);
use Rector\Core\Configuration\Option;
use Rector\Set\ValueObject\SetList;
use Rector\Set\ValueObject\DowngradeSetList;
use Rector\Core\ValueObject\PhpVersion;
use Rector\Set\ValueObject\SetList;
//use Rector\Set\ValueObject\DowngradeSetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
@ -16,16 +16,16 @@ return static function (ContainerConfigurator $containerConfigurator): void {
__DIR__ . '/src',
]);
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_80);
// Define what rule sets will be applied
$parameters->set(Option::SETS, [
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
SetList::TYPE_DECLARATION,
// TODO:
//SetList::PRIVATIZATION
// TODO: in Build
// DowngradeSetList::PHP_80,
// DowngradeSetList::PHP_74,
// DowngradeSetList::PHP_73,
//DowngradeSetList::PHP_72,
]);
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_71);
};