31 lines
900 B
PHP
31 lines
900 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Core\Configuration\Option;
|
|
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 {
|
|
// get parameters
|
|
$parameters = $containerConfigurator->parameters();
|
|
|
|
$parameters->set(Option::PATHS, [
|
|
__DIR__ . '/src',
|
|
]);
|
|
|
|
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_80);
|
|
|
|
// Define what rule sets will be applied
|
|
$parameters->set(Option::SETS, [
|
|
// TODO:
|
|
//SetList::PRIVATIZATION
|
|
// TODO: in Build
|
|
// DowngradeSetList::PHP_80,
|
|
// DowngradeSetList::PHP_74,
|
|
// DowngradeSetList::PHP_73,
|
|
//DowngradeSetList::PHP_72,
|
|
]);
|
|
};
|