This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
footnotes/rector.php

27 lines
751 B
PHP
Raw Permalink Normal View History

2021-05-02 09:15:44 +00:00
<?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;
2021-05-02 09:15:44 +00:00
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
// get parameters
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::PATHS, [
__DIR__ . '/dist',
2021-05-02 09:15:44 +00:00
]);
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_74);
2021-05-02 20:24:59 +00:00
2021-05-02 09:15:44 +00:00
// Define what rule sets will be applied
$parameters->set(Option::SETS, [
//TODO: SetList::PRIVATIZATION
DowngradeSetList::PHP_80
2021-05-02 09:15:44 +00:00
]);
};