ci: update Rector config
This commit is contained in:
parent
a5e4764a35
commit
7d72930899
1 changed files with 7 additions and 7 deletions
14
rector.php
14
rector.php
|
@ -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);
|
||||
};
|
||||
|
|
Reference in a new issue