2020-07-18 16:57:24 +00:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2022-06-06 06:00:07 +00:00
|
|
|
namespace RectorPrefix20220606;
|
2020-07-18 16:57:24 +00:00
|
|
|
|
2022-06-06 16:43:29 +00:00
|
|
|
use RectorPrefix20220606\Rector\Config\RectorConfig;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\ClassMethod\AddArrayParamDocTypeRector;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\ClassMethod\ParamAnnotationIncorrectNullableRector;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\ClassMethod\ParamTypeByMethodCallTypeRector;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\ClassMethod\ParamTypeByParentCallTypeRector;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\ClassMethod\ReturnAnnotationIncorrectNullableRector;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\FunctionLike\ParamTypeDeclarationRector;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\FunctionLike\ReturnTypeDeclarationRector;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\Property\PropertyTypeDeclarationRector;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
|
|
|
|
use RectorPrefix20220606\Rector\TypeDeclaration\Rector\Property\VarAnnotationIncorrectNullableRector;
|
|
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
|
|
$rectorConfig->rule(ParamTypeDeclarationRector::class);
|
|
|
|
$rectorConfig->rule(ReturnTypeDeclarationRector::class);
|
|
|
|
$rectorConfig->rule(PropertyTypeDeclarationRector::class);
|
|
|
|
$rectorConfig->rule(AddClosureReturnTypeRector::class);
|
|
|
|
$rectorConfig->rule(AddArrayParamDocTypeRector::class);
|
|
|
|
$rectorConfig->rule(AddArrayReturnDocTypeRector::class);
|
|
|
|
$rectorConfig->rule(ParamTypeByParentCallTypeRector::class);
|
|
|
|
$rectorConfig->rule(ParamTypeByMethodCallTypeRector::class);
|
|
|
|
$rectorConfig->rule(TypedPropertyFromAssignsRector::class);
|
|
|
|
$rectorConfig->rule(ReturnAnnotationIncorrectNullableRector::class);
|
|
|
|
$rectorConfig->rule(VarAnnotationIncorrectNullableRector::class);
|
|
|
|
$rectorConfig->rule(ParamAnnotationIncorrectNullableRector::class);
|
2020-07-18 16:57:24 +00:00
|
|
|
};
|