Passed
Push — master ( d9ab4b...a4dc60 )
by Zing
05:13
created

rector.php (1 issue)

Severity
1
<?php
2
3
declare(strict_types=1);
4
5
use Rector\CodingStyle\Rector\ClassConst\VarConstantCommentRector;
6
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
7
use Rector\Core\Configuration\Option;
8
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector;
9
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
10
use Rector\EarlyReturn\Rector\If_\ChangeAndIfToEarlyReturnRector;
11
use Rector\EarlyReturn\Rector\If_\ChangeOrIfReturnToEarlyReturnRector;
12
use Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector;
13
use Rector\Naming\Rector\ClassMethod\RenameParamToMatchTypeRector;
14
use Rector\PHPUnit\Rector\Class_\AddSeeTestAnnotationRector;
15
use Rector\PHPUnit\Set\PHPUnitSetList;
16
use Rector\Privatization\Rector\Class_\ChangeReadOnlyVariableWithDefaultValueToConstantRector;
17
use Rector\Privatization\Rector\Class_\FinalizeClassesWithoutChildrenRector;
18
use Rector\Privatization\Rector\Class_\RepeatedLiteralToClassConstantRector;
19
use Rector\Privatization\Rector\MethodCall\PrivatizeLocalGetterToPropertyRector;
20
use Rector\Privatization\Rector\Property\PrivatizeLocalPropertyToPrivatePropertyRector;
21
use Rector\Set\ValueObject\SetList;
22
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
23
24
return static function (ContainerConfigurator $containerConfigurator): void {
25
    $parameters = $containerConfigurator->parameters();
26
    $parameters->set(
27
        Option::SETS,
0 ignored issues
show
Deprecated Code introduced by
The constant Rector\Core\Configuration\Option::SETS has been deprecated: Use $containerConfigurator->import() as it does the same job, just better and more explicit ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

27
        /** @scrutinizer ignore-deprecated */ Option::SETS,

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
28
        [
29
            SetList::CODING_STYLE,
30
            SetList::CODE_QUALITY,
31
            SetList::CODE_QUALITY_STRICT,
32
            SetList::DEAD_CODE,
33
            SetList::PRIVATIZATION,
34
            SetList::NAMING,
35
            PHPUnitSetList::PHPUNIT_CODE_QUALITY,
36
            SetList::PHP_70,
37
            SetList::PHP_71,
38
            SetList::PHP_72,
39
            SetList::EARLY_RETURN,
40
        ]
41
    );
42
    $parameters->set(
43
        Option::SKIP,
44
        [
45
            FinalizeClassesWithoutChildrenRector::class,
46
            ChangeReadOnlyVariableWithDefaultValueToConstantRector::class,
47
            AddSeeTestAnnotationRector::class,
48
            RepeatedLiteralToClassConstantRector::class,
49
            RenameParamToMatchTypeRector::class,
50
            RenameVariableToMatchMethodCallReturnTypeRector::class,
51
            EncapsedStringsToSprintfRector::class,
52
            PrivatizeLocalPropertyToPrivatePropertyRector::class,
53
            ChangeOrIfReturnToEarlyReturnRector::class,
54
            PrivatizeLocalGetterToPropertyRector::class,
55
            ChangeAndIfToEarlyReturnRector::class,
56
            VarConstantCommentRector::class,
57
            RemoveUselessParamTagRector::class,
58
            RemoveUselessReturnTagRector::class,
59
        ]
60
    );
61
    $parameters->set(
62
        Option::PATHS,
63
        [
64
            __DIR__ . '/config',
65
            __DIR__ . '/src',
66
            __DIR__ . '/tests',
67
            __DIR__ . '/changelog-linker.php',
68
            __DIR__ . '/ecs.php',
69
            __DIR__ . '/rector.php',
70
        ]
71
    );
72
};
73