2021-02-15 16:38:30 +00:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2022-06-07 06:40:10 +00:00
|
|
|
namespace RectorPrefix20220607;
|
2021-02-15 16:38:30 +00:00
|
|
|
|
2022-06-06 17:12:56 +00:00
|
|
|
use Rector\Config\RectorConfig;
|
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\ArrayShapeFromConstantArrayReturnRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromReturnNewRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedPropertyRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\Param\ParamTypeFromStrictTypedPropertyRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector;
|
|
|
|
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictGetterMethodReturnTypeRector;
|
2022-06-07 08:22:29 +00:00
|
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
|
|
$rectorConfig->rule(AddClosureReturnTypeRector::class);
|
|
|
|
$rectorConfig->rule(ReturnTypeFromStrictTypedPropertyRector::class);
|
|
|
|
$rectorConfig->rule(TypedPropertyFromStrictConstructorRector::class);
|
|
|
|
$rectorConfig->rule(ParamTypeFromStrictTypedPropertyRector::class);
|
|
|
|
$rectorConfig->rule(ReturnTypeFromStrictTypedCallRector::class);
|
|
|
|
$rectorConfig->rule(AddVoidReturnTypeWhereNoReturnRector::class);
|
|
|
|
$rectorConfig->rule(ReturnTypeFromReturnNewRector::class);
|
|
|
|
$rectorConfig->rule(TypedPropertyFromStrictGetterMethodReturnTypeRector::class);
|
|
|
|
$rectorConfig->rule(AddMethodCallBasedStrictParamTypeRector::class);
|
|
|
|
$rectorConfig->rule(ArrayShapeFromConstantArrayReturnRector::class);
|
2021-02-15 16:38:30 +00:00
|
|
|
};
|