2020-09-12 17:50:13 +08:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2022-06-08 05:54:40 +00:00
|
|
|
namespace RectorPrefix20220608;
|
2020-09-12 17:50:13 +08:00
|
|
|
|
2022-06-06 17:12:56 +00:00
|
|
|
use Rector\Config\RectorConfig;
|
|
|
|
use Rector\Core\ValueObject\PhpVersion;
|
|
|
|
use Rector\DowngradePhp71\Rector\Array_\SymmetricArrayDestructuringToListRector;
|
|
|
|
use Rector\DowngradePhp71\Rector\ClassConst\DowngradeClassConstantVisibilityRector;
|
|
|
|
use Rector\DowngradePhp71\Rector\ConstFetch\DowngradePhp71JsonConstRector;
|
|
|
|
use Rector\DowngradePhp71\Rector\FuncCall\DowngradeIsIterableRector;
|
|
|
|
use Rector\DowngradePhp71\Rector\FunctionLike\DowngradeIterablePseudoTypeDeclarationRector;
|
|
|
|
use Rector\DowngradePhp71\Rector\FunctionLike\DowngradeNullableTypeDeclarationRector;
|
|
|
|
use Rector\DowngradePhp71\Rector\FunctionLike\DowngradeVoidTypeDeclarationRector;
|
|
|
|
use Rector\DowngradePhp71\Rector\List_\DowngradeKeysInListRector;
|
|
|
|
use Rector\DowngradePhp71\Rector\StaticCall\DowngradeClosureFromCallableRector;
|
|
|
|
use Rector\DowngradePhp71\Rector\String_\DowngradeNegativeStringOffsetToStrlenRector;
|
|
|
|
use Rector\DowngradePhp71\Rector\TryCatch\DowngradePipeToMultiCatchExceptionRector;
|
2022-06-07 08:22:29 +00:00
|
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
|
|
$rectorConfig->phpVersion(PhpVersion::PHP_70);
|
|
|
|
$rectorConfig->rule(DowngradeNullableTypeDeclarationRector::class);
|
|
|
|
$rectorConfig->rule(DowngradeVoidTypeDeclarationRector::class);
|
|
|
|
$rectorConfig->rule(DowngradeClassConstantVisibilityRector::class);
|
|
|
|
$rectorConfig->rule(DowngradePipeToMultiCatchExceptionRector::class);
|
|
|
|
$rectorConfig->rule(SymmetricArrayDestructuringToListRector::class);
|
|
|
|
$rectorConfig->rule(DowngradeNegativeStringOffsetToStrlenRector::class);
|
|
|
|
$rectorConfig->rule(DowngradeKeysInListRector::class);
|
|
|
|
$rectorConfig->rule(DowngradeIterablePseudoTypeDeclarationRector::class);
|
|
|
|
$rectorConfig->rule(DowngradeIsIterableRector::class);
|
|
|
|
$rectorConfig->rule(DowngradeClosureFromCallableRector::class);
|
|
|
|
$rectorConfig->rule(DowngradePhp71JsonConstRector::class);
|
2020-09-12 17:50:13 +08:00
|
|
|
};
|