Issues (346)

code/rector.php (4 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\Php74\Rector\Property\TypedPropertyRector;
0 ignored issues
show
The type Rector\Php74\Rector\Property\TypedPropertyRector 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 Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
0 ignored issues
show
The type Symfony\Component\Depend...r\ContainerConfigurator 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
10
return static function (ContainerConfigurator $containerConfigurator): void {
11
    // get parameters
12
    $parameters = $containerConfigurator->parameters();
13
14
    // Define what rule sets will be applied
15
    $parameters->set(Option::SETS, [
16
        SetList::DEAD_CODE,
17
        SetList::DEAD_DOC_BLOCK,
18
    ]);
19
20
    // get services (needed for register a single rule)
21
     $services = $containerConfigurator->services();
22
23
    // register a single rule
24
     $services->set(TypedPropertyRector::class);
25
};
26