2020-07-18 18:57:24 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
use Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector;
|
|
|
|
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
|
2020-06-08 11:28:03 +02:00
|
|
|
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
|
2020-07-18 18:57:24 +02:00
|
|
|
use Rector\Php80\Rector\Class_\StringableForToStringRector;
|
|
|
|
use Rector\Php80\Rector\FuncCall\ClassOnObjectRector;
|
|
|
|
use Rector\Php80\Rector\FuncCall\TokenGetAllToObjectRector;
|
|
|
|
use Rector\Php80\Rector\FunctionLike\UnionTypesRector;
|
|
|
|
use Rector\Php80\Rector\Identical\StrEndsWithRector;
|
|
|
|
use Rector\Php80\Rector\Identical\StrStartsWithRector;
|
|
|
|
use Rector\Php80\Rector\NotIdentical\StrContainsRector;
|
2020-06-22 20:18:58 +02:00
|
|
|
use Rector\Php80\Rector\Switch_\ChangeSwitchToMatchRector;
|
2020-07-18 18:57:24 +02:00
|
|
|
use Rector\Php80\Rector\Ternary\GetDebugTypeRector;
|
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
|
|
$services = $containerConfigurator->services();
|
|
|
|
|
|
|
|
$services->set(UnionTypesRector::class);
|
|
|
|
|
|
|
|
$services->set(StrContainsRector::class);
|
|
|
|
|
|
|
|
$services->set(StrStartsWithRector::class);
|
|
|
|
|
|
|
|
$services->set(StrEndsWithRector::class);
|
|
|
|
|
|
|
|
$services->set(StringableForToStringRector::class);
|
|
|
|
|
|
|
|
$services->set(AnnotationToAttributeRector::class);
|
|
|
|
|
|
|
|
$services->set(ClassOnObjectRector::class);
|
|
|
|
|
|
|
|
$services->set(GetDebugTypeRector::class);
|
|
|
|
|
|
|
|
$services->set(TokenGetAllToObjectRector::class);
|
|
|
|
|
|
|
|
$services->set(RemoveUnusedVariableInCatchRector::class);
|
2020-06-08 11:28:03 +02:00
|
|
|
|
|
|
|
$services->set(ClassPropertyAssignToConstructorPromotionRector::class);
|
2020-06-22 20:18:58 +02:00
|
|
|
|
|
|
|
$services->set(ChangeSwitchToMatchRector::class);
|
2020-07-18 18:57:24 +02:00
|
|
|
};
|