mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
28 lines
1.6 KiB
PHP
28 lines
1.6 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector;
|
|
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;
|
|
use Rector\Naming\Rector\Foreach_\RenameForeachValueVariableToMatchExprVariableRector;
|
|
use Rector\Naming\Rector\Foreach_\RenameForeachValueVariableToMatchMethodCallReturnTypeRector;
|
|
use Rector\Naming\Rector\Property\MakeBoolPropertyRespectIsHasWasMethodNamingRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
$services->set(RenameParamToMatchTypeRector::class);
|
|
$services->set(RenamePropertyToMatchTypeRector::class);
|
|
$services->set(RenameVariableToMatchNewTypeRector::class);
|
|
$services->set(RenameVariableToMatchMethodCallReturnTypeRector::class);
|
|
$services->set(MakeGetterClassMethodNameStartWithGetRector::class);
|
|
$services->set(MakeIsserClassMethodNameStartWithIsRector::class);
|
|
$services->set(RenameForeachValueVariableToMatchMethodCallReturnTypeRector::class);
|
|
$services->set(MakeBoolPropertyRespectIsHasWasMethodNamingRector::class);
|
|
$services->set(RenameForeachValueVariableToMatchExprVariableRector::class);
|
|
};
|