mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-24 23:55:02 +00:00
Rector changes return typing
This commit is contained in:
37
rector.php
37
rector.php
@@ -17,17 +17,17 @@ use Rector\Symfony\Set\SymfonySetList;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->paths([
|
||||
__DIR__ . '/docs',
|
||||
__DIR__ . '/src',
|
||||
__DIR__ . '/rector.php',
|
||||
__DIR__.'/docs',
|
||||
__DIR__.'/src',
|
||||
__DIR__.'/rector.php',
|
||||
]);
|
||||
|
||||
$rectorConfig->skip([
|
||||
Rector\Php55\Rector\String_\StringClassNameToClassConstantRector::class => __DIR__.'src/Bundle/ChillMainBundle/Service/Notifier/LegacyOvhCloudFactory.php',
|
||||
]);
|
||||
|
||||
//$rectorConfig->symfonyContainerXml(__DIR__ . '/var/cache/dev/test/App_KernelTestDebugContainer.xml ');
|
||||
//$rectorConfig->symfonyContainerPhp(__DIR__ . '/tests/symfony-container.php');
|
||||
// $rectorConfig->symfonyContainerXml(__DIR__ . '/var/cache/dev/test/App_KernelTestDebugContainer.xml ');
|
||||
// $rectorConfig->symfonyContainerPhp(__DIR__ . '/tests/symfony-container.php');
|
||||
|
||||
// $rectorConfig->cacheClass(\Rector\Caching\ValueObject\Storage\FileCacheStorage::class);
|
||||
// $rectorConfig->cacheDirectory(__DIR__ . '/.cache/rector');
|
||||
@@ -45,21 +45,24 @@ return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->rule(Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedPropertyRector::class);
|
||||
|
||||
// part of the symfony 54 rules
|
||||
$rectorConfig->rule(\Rector\Symfony\Symfony53\Rector\StaticPropertyFetch\KernelTestCaseContainerPropertyDeprecationRector::class);
|
||||
$rectorConfig->rule(\Rector\Symfony\Symfony60\Rector\MethodCall\GetHelperControllerToServiceRector::class);
|
||||
//$rectorConfig->disableParallel();
|
||||
$rectorConfig->rule(Rector\Symfony\Symfony53\Rector\StaticPropertyFetch\KernelTestCaseContainerPropertyDeprecationRector::class);
|
||||
$rectorConfig->rule(Rector\Symfony\Symfony60\Rector\MethodCall\GetHelperControllerToServiceRector::class);
|
||||
// $rectorConfig->disableParallel();
|
||||
|
||||
// define sets of rules
|
||||
$rectorConfig->sets([
|
||||
LevelSetList::UP_TO_PHP_82,
|
||||
Rector\Symfony\Set\SymfonySetList::SYMFONY_60,
|
||||
Rector\Symfony\Set\SymfonySetList::SYMFONY_61,
|
||||
Rector\Symfony\Set\SymfonySetList::SYMFONY_62,
|
||||
Rector\Symfony\Set\SymfonySetList::SYMFONY_63,
|
||||
Rector\Symfony\Set\SymfonySetList::SYMFONY_64,
|
||||
Rector\Symfony\Set\SymfonySetList::SYMFONY_70,
|
||||
Rector\Symfony\Set\SymfonySetList::SYMFONY_71,
|
||||
// Rector\Doctrine\Set\DoctrineSetList::DOCTRINE_CODE_QUALITY,
|
||||
// LevelSetList::UP_TO_PHP_82,
|
||||
// SymfonySetList::SYMFONY_60,
|
||||
// SymfonySetList::SYMFONY_61,
|
||||
// SymfonySetList::SYMFONY_62,
|
||||
// SymfonySetList::SYMFONY_63,
|
||||
// SymfonySetList::SYMFONY_64,
|
||||
// SymfonySetList::SYMFONY_70,
|
||||
// SymfonySetList::SYMFONY_71,
|
||||
Rector\Doctrine\Set\DoctrineSetList::DOCTRINE_ORM_29,
|
||||
Rector\Doctrine\Set\DoctrineSetList::DOCTRINE_DBAL_30,
|
||||
Rector\Doctrine\Set\DoctrineSetList::DOCTRINE_CODE_QUALITY,
|
||||
Rector\Doctrine\Set\DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES,
|
||||
]);
|
||||
|
||||
$rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [
|
||||
|
Reference in New Issue
Block a user