Passed
Pull Request — master (#43)
by
unknown
03:36
created

rector.php (5 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
use Rector\Core\Configuration\Option;
0 ignored issues
show
The type Rector\Core\Configuration\Option was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Rector\PHPUnit\Rector\Class_\AddSeeTestAnnotationRector;
0 ignored issues
show
The type Rector\PHPUnit\Rector\Cl...SeeTestAnnotationRector was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use Rector\Set\ValueObject\SetList;
0 ignored issues
show
The type Rector\Set\ValueObject\SetList was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Rector\SOLID\Rector\Class_\ChangeReadOnlyVariableWithDefaultValueToConstantRector;
0 ignored issues
show
The type Rector\SOLID\Rector\Clas...ltValueToConstantRector was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
use Rector\SOLID\Rector\Class_\FinalizeClassesWithoutChildrenRector;
0 ignored issues
show
The type Rector\SOLID\Rector\Clas...esWithoutChildrenRector was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
11
12
return static function (ContainerConfigurator $containerConfigurator): void {
13
    $parameters = $containerConfigurator->parameters();
14
    $parameters->set(
15
        Option::SETS,
16
        [
17
            SetList::ACTION_INJECTION_TO_CONSTRUCTOR_INJECTION,
18
            SetList::ARRAY_STR_FUNCTIONS_TO_STATIC_CALL,
19
            SetList::PHPSTAN,
20
            SetList::PHPUNIT_CODE_QUALITY,
21
            SetList::SOLID,
22
            SetList::DOCTRINE_CODE_QUALITY,
23
            SetList::DEAD_CODE,
24
            SetList::CODE_QUALITY,
25
            SetList::PHP_70,
26
            SetList::PHP_71,
27
            SetList::PHP_72,
28
        ]
29
    );
30
    $parameters->set(
31
        Option::EXCLUDE_RECTORS,
32
        [
33
            FinalizeClassesWithoutChildrenRector::class,
34
            ChangeReadOnlyVariableWithDefaultValueToConstantRector::class,
35
            AddSeeTestAnnotationRector::class,
36
        ]
37
    );
38
    $parameters->set(
39
        Option::PATHS,
40
        [
41
            __DIR__ . '/src',
42
            __DIR__ . '/tests',
43
            __DIR__ . '/ecs.php',
44
            __DIR__ . '/rector.php',
45
        ]
46
    );
47
};
48