Issues (144)

rector.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\Php73\Rector\ConstFetch\SensitiveConstantNameRector;
0 ignored issues
show
The type Rector\Php73\Rector\Cons...itiveConstantNameRector 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
// import the correct class
8
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...
9
10
return static function (RectorConfig $rectorConfig): void {
11
	$rectorConfig->sets([
12
		LevelSetList::UP_TO_PHP_81,
13
		LevelSetList::UP_TO_PHP_82,
14
		LevelSetList::UP_TO_PHP_83,
15
		LevelSetList::UP_TO_PHP_84,
16
	]);
17
18
	$rectorConfig->skip([
19
		// your directories
20
		__DIR__ . '/plugins/files/php/vendor',
21
		__DIR__ . '/plugins/files/php/Files/Backend/Webdav/sabredav/vendor',
22
		__DIR__ . '/plugins/kendox/php/vendor',
23
24
		// skip the rule by its correct class name
25
		SensitiveConstantNameRector::class,
26
	]);
27
};
28