forked from handcraftedinthealps/goodby-csv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rector.php
35 lines (28 loc) · 1.33 KB
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\SetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
$services = $containerConfigurator->services();
$parameters->set(Option::PATHS, [__DIR__ . '/src']);
$parameters->set(Option::BOOTSTRAP_FILES, [
__DIR__ . '/vendor/autoload.php',
]);
// basic rules
$parameters->set(Option::AUTO_IMPORT_NAMES, true);
$parameters->set(Option::IMPORT_DOC_BLOCKS, true);
$parameters->set(Option::IMPORT_SHORT_CLASSES, false);
$containerConfigurator->import(SetList::PHP_54);
$containerConfigurator->import(SetList::PHP_55);
$containerConfigurator->import(SetList::PHP_56);
$containerConfigurator->import(SetList::PHP_70);
$containerConfigurator->import(SetList::PHP_71);
$containerConfigurator->import(SetList::PHP_72);
$containerConfigurator->import(PHPUnitSetList::PHPUNIT_50);
$containerConfigurator->import(PHPUnitSetList::PHPUNIT_60);
$containerConfigurator->import(PHPUnitSetList::PHPUNIT_70);
//$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_72);
};