-
Notifications
You must be signed in to change notification settings - Fork 0
/
rector.php
38 lines (34 loc) · 1.11 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
<?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 $config): void
{
$parameters = $config->parameters();
$parameters->set(Option::SETS, [
SetList::ACTION_INJECTION_TO_CONSTRUCTOR_INJECTION,
SetList::CODE_QUALITY,
SetList::CODING_STYLE,
SetList::DEAD_CODE,
SetList::DOCTRINE_CODE_QUALITY,
SetList::DOCTRINE_25,
SetList::FRAMEWORK_EXTRA_BUNDLE_50,
SetList::NAMING,
SetList::PERFORMANCE,
SetList::PHP_CODE_SNIFFER_30,
SetList::PHP_DI_DECOUPLE,
SetList::PHP_74,
SetList::PHPSTAN,
SetList::PRIVATIZATION,
SetList::PSR_4,
SetList::SOLID,
SetList::SYMFONY_CODE_QUALITY,
SetList::SYMFONY_CONSTRUCTOR_INJECTION,
SetList::SYMFONY_50,
SetList::SYMFONY_50_TYPES,
SetList::TWIG_UNDERSCORE_TO_NAMESPACE,
SetList::TYPE_DECLARATION,
SetList::UNWRAP_COMPAT
]);
};