Issues (222)

rector.php (7 issues)

Labels
Severity
1
<?php declare(strict_types=1);
2
/**
3
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
4
 */
5
6
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...
7
use Rector\Core\ValueObject\PhpVersion;
0 ignored issues
show
The type Rector\Core\ValueObject\PhpVersion 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\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...
9
use Rector\PHPUnit\Set\PHPUnitSetList;
0 ignored issues
show
The type Rector\PHPUnit\Set\PHPUnitSetList 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 Rector\Privatization\Rector\Class_\ChangeReadOnlyVariableWithDefaultValueToConstantRector;
0 ignored issues
show
The type Rector\Privatization\Rec...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...
11
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...
12
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...
13
14
return static function (ContainerConfigurator $containerConfigurator): void {
15
    $parameters = $containerConfigurator->parameters();
16
17
    $parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/tests']);
18
19
    // Define what rule sets will be applied
20
    $containerConfigurator->import(SetList::DEAD_CODE);
21
    $containerConfigurator->import(SetList::CODE_QUALITY);
22
    $containerConfigurator->import(SetList::PRIVATIZATION);
23
    $containerConfigurator->import(SetList::EARLY_RETURN);
24
    $containerConfigurator->import(SetList::PHP_81);
25
    $containerConfigurator->import(PHPUnitSetList::PHPUNIT_91);
26
    $containerConfigurator->import(PHPUnitSetList::PHPUNIT_CODE_QUALITY);
27
    $containerConfigurator->import(PHPUnitSetList::PHPUNIT_EXCEPTION);
28
    $containerConfigurator->import(PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD);
29
30
    $parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_81);
31
32
    // Path to PHPStan with extensions, that PHPStan in Rector uses to determine types
33
    $parameters->set(Option::PHPSTAN_FOR_RECTOR_PATH, getcwd() . '/phpstan.neon');
34
35
    // Skipped rules
36
    $parameters->set(Option::SKIP, [
37
        AddSeeTestAnnotationRector::class,
38
        ChangeReadOnlyVariableWithDefaultValueToConstantRector::class,
39
        __DIR__ . '/tests/resources',
40
    ]);
41
};
42