2020-07-18 16:57:24 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-03-07 21:07:50 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayParamDocTypeRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeFromCallersRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\FunctionLike\ParamTypeDeclarationRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\FunctionLike\ReturnTypeDeclarationRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\Property\PropertyTypeDeclarationRector;
|
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
2020-07-18 16:57:24 +00:00
|
|
|
$services = $containerConfigurator->services();
|
2021-03-07 21:07:50 +00:00
|
|
|
$services->set(ParamTypeDeclarationRector::class);
|
|
|
|
$services->set(ReturnTypeDeclarationRector::class);
|
|
|
|
$services->set(PropertyTypeDeclarationRector::class);
|
|
|
|
$services->set(AddClosureReturnTypeRector::class);
|
|
|
|
$services->set(AddArrayParamDocTypeRector::class);
|
|
|
|
$services->set(AddArrayReturnDocTypeRector::class);
|
|
|
|
// $services->set(AddParamTypeFromCallersRector::class);
|
2020-07-18 16:57:24 +00:00
|
|
|
};
|