mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
* [Naming] Add MakeGetterClassMethodNameStartWithGetRector * [rector] [Naming] Add MakeGetterClassMethodNameStartWithGetRector * [cs] [Naming] Add MakeGetterClassMethodNameStartWithGetRector Co-authored-by: rector-bot <tomas@getrector.org>
20 lines
934 B
PHP
20 lines
934 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Naming\Rector\Assign\RenameVariableToMatchGetMethodNameRector;
|
|
use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector;
|
|
use Rector\Naming\Rector\ClassMethod\MakeGetterClassMethodNameStartWithGetRector;
|
|
use Rector\Naming\Rector\ClassMethod\RenameParamToMatchTypeRector;
|
|
use Rector\Naming\Rector\ClassMethod\RenameVariableToMatchNewTypeRector;
|
|
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(RenameVariableToMatchGetMethodNameRector::class);
|
|
$services->set(MakeGetterClassMethodNameStartWithGetRector::class);
|
|
};
|