mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-15 15:42:22 +00:00
a9ffd906d7
368dbb048c
docs: fix instruction in CONTRIBUTING.md (#2470)
29 lines
1.7 KiB
PHP
29 lines
1.7 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix20220610;
|
|
|
|
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;
|
|
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);
|
|
};
|