2020-07-18 18:57:24 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-08-30 21:01:33 +02:00
|
|
|
use Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector;
|
2020-08-22 19:13:13 +02:00
|
|
|
use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector;
|
|
|
|
use Rector\Naming\Rector\ClassMethod\MakeGetterClassMethodNameStartWithGetRector;
|
|
|
|
use Rector\Naming\Rector\ClassMethod\MakeIsserClassMethodNameStartWithIsRector;
|
|
|
|
use Rector\Naming\Rector\ClassMethod\RenameParamToMatchTypeRector;
|
|
|
|
use Rector\Naming\Rector\ClassMethod\RenameVariableToMatchNewTypeRector;
|
2021-03-05 17:55:40 +07:00
|
|
|
use Rector\Naming\Rector\Foreach_\RenameForeachValueVariableToMatchExprVariableRector;
|
2020-09-09 10:52:43 +02:00
|
|
|
use Rector\Naming\Rector\Foreach_\RenameForeachValueVariableToMatchMethodCallReturnTypeRector;
|
2020-09-22 22:22:10 +02:00
|
|
|
use Rector\Naming\Rector\Property\MakeBoolPropertyRespectIsHasWasMethodNamingRector;
|
2020-08-22 19:13:13 +02:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
2020-07-18 18:57:24 +02:00
|
|
|
$services = $containerConfigurator->services();
|
2020-08-22 19:13:13 +02:00
|
|
|
$services->set(RenameParamToMatchTypeRector::class);
|
|
|
|
$services->set(RenamePropertyToMatchTypeRector::class);
|
|
|
|
$services->set(RenameVariableToMatchNewTypeRector::class);
|
2020-08-30 21:01:33 +02:00
|
|
|
$services->set(RenameVariableToMatchMethodCallReturnTypeRector::class);
|
2020-08-22 19:13:13 +02:00
|
|
|
$services->set(MakeGetterClassMethodNameStartWithGetRector::class);
|
|
|
|
$services->set(MakeIsserClassMethodNameStartWithIsRector::class);
|
2020-09-09 10:52:43 +02:00
|
|
|
$services->set(RenameForeachValueVariableToMatchMethodCallReturnTypeRector::class);
|
2020-09-22 22:22:10 +02:00
|
|
|
$services->set(MakeBoolPropertyRespectIsHasWasMethodNamingRector::class);
|
2021-03-05 17:55:40 +07:00
|
|
|
$services->set(RenameForeachValueVariableToMatchExprVariableRector::class);
|
2020-07-18 18:57:24 +02:00
|
|
|
};
|