Issues (224)

requirement-checker/rector-src.php (3 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
use Rector\Config\RectorConfig;
0 ignored issues
show
The type Rector\Config\RectorConfig 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\Set\ValueObject\DowngradeLevelSetList;
0 ignored issues
show
The type Rector\Set\ValueObject\DowngradeLevelSetList 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\LevelSetList;
0 ignored issues
show
The type Rector\Set\ValueObject\LevelSetList 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
9
$applyCommonConfig = require __DIR__.'/rector.php';
10
11
return static function (RectorConfig $rectorConfig) use ($applyCommonConfig): void {
12
    $applyCommonConfig($rectorConfig);
13
14
    $rectorConfig->paths([
15
        __DIR__ . '/src',
16
    ]);
17
18
    $rectorConfig->sets([
19
        LevelSetList::UP_TO_PHP_72,
20
        DowngradeLevelSetList::DOWN_TO_PHP_72,
21
    ]);
22
};
23