Issues (43)

rector.php (8 issues)

1
<?php
2
3
declare(strict_types=1);
4
5
use Rector\Core\Configuration\Option;
6
use Rector\Core\ValueObject\PhpVersion;
7
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
8
use Rector\PostRector\Rector\NameImportingPostRector;
9
use Rector\Set\ValueObject\LevelSetList;
10
use Rector\Set\ValueObject\SetList;
11
use Ssch\TYPO3Rector\Configuration\Typo3Option;
12
use Ssch\TYPO3Rector\FileProcessor\Composer\Rector\ExtensionComposerRector;
0 ignored issues
show
The type Ssch\TYPO3Rector\FilePro...ExtensionComposerRector 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
use Ssch\TYPO3Rector\FileProcessor\TypoScript\Rector\FileIncludeToImportStatementTypoScriptRector;
0 ignored issues
show
The type Ssch\TYPO3Rector\FilePro...atementTypoScriptRector 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...
14
use Ssch\TYPO3Rector\Rector\v9\v0\InjectAnnotationRector;
15
use Ssch\TYPO3Rector\Rector\General\ExtEmConfRector;
16
use Ssch\TYPO3Rector\Set\Typo3LevelSetList;
17
use Ssch\TYPO3Rector\Set\Typo3SetList;
18
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
19
20
return static function (ContainerConfigurator $containerConfigurator): void {
21
22
    $containerConfigurator->import(Typo3LevelSetList::UP_TO_TYPO3_12);
23
    $containerConfigurator->import(SetList::CODE_QUALITY);
24
    $containerConfigurator->import(SetList::TYPE_DECLARATION);
25
    $containerConfigurator->import(SetList::TYPE_DECLARATION_STRICT);
26
    $containerConfigurator->import(LevelSetList::UP_TO_PHP_80);
27
28
    $parameters = $containerConfigurator->parameters();
29
    $parameters->set(Option::PHPSTAN_FOR_RECTOR_PATH, Typo3Option::PHPSTAN_FOR_RECTOR_PATH);
0 ignored issues
show
Deprecated Code introduced by
The constant Rector\Core\Configuratio...PHPSTAN_FOR_RECTOR_PATH has been deprecated: Use @see \Rector\Config\RectorConfig::phpstanConfig() instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

29
    $parameters->set(/** @scrutinizer ignore-deprecated */ Option::PHPSTAN_FOR_RECTOR_PATH, Typo3Option::PHPSTAN_FOR_RECTOR_PATH);

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
30
    $parameters->set(Option::AUTO_IMPORT_NAMES, true);
0 ignored issues
show
Deprecated Code introduced by
The constant Rector\Core\Configuratio...tion::AUTO_IMPORT_NAMES has been deprecated: Use @see \Rector\Config\RectorConfig::importNames() instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

30
    $parameters->set(/** @scrutinizer ignore-deprecated */ Option::AUTO_IMPORT_NAMES, true);

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
31
    $parameters->set(Option::IMPORT_SHORT_CLASSES, false);
0 ignored issues
show
Deprecated Code introduced by
The constant Rector\Core\Configuratio...n::IMPORT_SHORT_CLASSES has been deprecated: Use @see \Rector\Config\RectorConfig::importShortClasses() instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

31
    $parameters->set(/** @scrutinizer ignore-deprecated */ Option::IMPORT_SHORT_CLASSES, false);

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
32
    $parameters->set(Option::IMPORT_DOC_BLOCKS, false);
0 ignored issues
show
The constant Rector\Core\Configuratio...tion::IMPORT_DOC_BLOCKS was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
33
34
    $parameters->set(Option::PATHS, [
0 ignored issues
show
Deprecated Code introduced by
The constant Rector\Core\Configuration\Option::PATHS has been deprecated: Use @see \Rector\Config\RectorConfig::paths() instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

34
    $parameters->set(/** @scrutinizer ignore-deprecated */ Option::PATHS, [

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
35
        'ext_emconf.php',
36
        'composer.json',
37
        __DIR__ . '/Classes/',
38
        __DIR__ . '/Configuration/',
39
        __DIR__ . '/Tests/',
40
    ]);
41
42
    $parameters->set(Option::SKIP, [
0 ignored issues
show
Deprecated Code introduced by
The constant Rector\Core\Configuration\Option::SKIP has been deprecated: Use @see \Rector\Config\RectorConfig::skip() instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

42
    $parameters->set(/** @scrutinizer ignore-deprecated */ Option::SKIP, [

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
43
        NameImportingPostRector::class => [
44
            'ext_emconf.php',
45
            'ext_localconf.php',
46
            'ext_tables.php',
47
        ],
48
    ]);
49
50
    $services = $containerConfigurator->services();
51
    $services->set(ExtEmConfRector::class);
52
    $services->set(ExtensionComposerRector::class);
53
};
54