2021-02-15 16:38:30 +00:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2021-08-08 00:26:40 +00:00
|
|
|
namespace RectorPrefix20210808;
|
2021-02-15 16:38:30 +00:00
|
|
|
|
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;
|
2021-06-02 10:21:10 +00:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
2021-02-15 16:38:30 +00:00
|
|
|
$services = $containerConfigurator->services();
|
2021-05-10 22:23:08 +00:00
|
|
|
$services->set(\Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector::class);
|
|
|
|
$services->set(\Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedPropertyRector::class);
|
|
|
|
$services->set(\Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector::class);
|
|
|
|
$services->set(\Rector\TypeDeclaration\Rector\Param\ParamTypeFromStrictTypedPropertyRector::class);
|
|
|
|
$services->set(\Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector::class);
|
|
|
|
$services->set(\Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector::class);
|
2021-02-17 15:40:29 +00:00
|
|
|
// $services->set(AddMethodCallBasedStrictParamTypeRector::class);
|
2021-05-10 22:23:08 +00:00
|
|
|
$services->set(\Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromReturnNewRector::class);
|
2021-02-15 16:38:30 +00:00
|
|
|
};
|