-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathrector.php
43 lines (37 loc) · 1.31 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
36
37
38
39
40
41
42
43
<?php
declare(strict_types=1);
use Rector\Core\Configuration\Option;
use Rector\Set\ValueObject\SetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::PATHS, [
__DIR__ . '/Classes',
__DIR__ . '/Tests',
]);
$parameters->set(Option::PHP_VERSION_FEATURES, '7.4');
$parameters->set(Option::AUTO_IMPORT_NAMES, true);
$parameters->set(Option::IMPORT_SHORT_CLASSES, false);
$parameters->set(Option::IMPORT_DOC_BLOCKS, false);
$parameters->set(Option::SETS, [
SetList::PHP_53,
SetList::PHP_54,
SetList::PHP_55,
SetList::PHP_56,
SetList::PHP_70,
SetList::PHP_71,
SetList::PHP_72,
SetList::PHP_73,
SetList::PHP_74,
SetList::PHPUNIT_CODE_QUALITY,
SetList::PHPUNIT_EXCEPTION,
SetList::PHPUNIT_INJECTOR,
SetList::PHPUNIT_MOCK,
SetList::PHPUNIT_SPECIFIC_METHOD,
SetList::PHPUNIT_91,
]);
$parameters->set(Option::EXCLUDE_RECTORS, [
\Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector::class,
\Rector\Php73\Rector\BinaryOp\IsCountableRector::class
]);
};