2021-02-15 16:38:30 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-02-17 15:40:29 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector;
|
2021-02-16 16:12:37 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
|
2021-02-19 12:01:23 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromReturnNewRector;
|
2021-02-16 16:12:37 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedPropertyRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector;
|
2021-04-28 20:33:20 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\Param\ParamTypeFromStrictTypedPropertyRector;
|
2021-02-16 16:12:37 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector;
|
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
2021-02-15 16:38:30 +00:00
|
|
|
$services = $containerConfigurator->services();
|
2021-02-16 16:12:37 +00:00
|
|
|
$services->set(AddClosureReturnTypeRector::class);
|
|
|
|
$services->set(ReturnTypeFromStrictTypedPropertyRector::class);
|
|
|
|
$services->set(TypedPropertyFromStrictConstructorRector::class);
|
|
|
|
$services->set(ParamTypeFromStrictTypedPropertyRector::class);
|
|
|
|
$services->set(ReturnTypeFromStrictTypedCallRector::class);
|
|
|
|
$services->set(AddVoidReturnTypeWhereNoReturnRector::class);
|
2021-02-17 15:40:29 +00:00
|
|
|
// $services->set(AddMethodCallBasedStrictParamTypeRector::class);
|
2021-02-19 12:01:23 +00:00
|
|
|
$services->set(ReturnTypeFromReturnNewRector::class);
|
2021-02-15 16:38:30 +00:00
|
|
|
};
|