2020-09-09 16:32:28 +08:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2022-06-07 06:40:10 +00:00
|
|
|
namespace RectorPrefix20220607;
|
2020-09-09 16:32:28 +08:00
|
|
|
|
2022-06-06 17:12:56 +00:00
|
|
|
use Rector\Config\RectorConfig;
|
|
|
|
use Rector\Core\ValueObject\PhpVersion;
|
|
|
|
use Rector\DowngradePhp72\Rector\ClassMethod\DowngradeParameterTypeWideningRector;
|
|
|
|
use Rector\DowngradePhp72\Rector\ConstFetch\DowngradePhp72JsonConstRector;
|
|
|
|
use Rector\DowngradePhp72\Rector\FuncCall\DowngradeJsonDecodeNullAssociativeArgRector;
|
|
|
|
use Rector\DowngradePhp72\Rector\FuncCall\DowngradePregUnmatchedAsNullConstantRector;
|
|
|
|
use Rector\DowngradePhp72\Rector\FuncCall\DowngradeStreamIsattyRector;
|
|
|
|
use Rector\DowngradePhp72\Rector\FunctionLike\DowngradeObjectTypeDeclarationRector;
|
2022-06-07 08:22:29 +00:00
|
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
|
|
$rectorConfig->phpVersion(PhpVersion::PHP_71);
|
|
|
|
$rectorConfig->rule(DowngradeObjectTypeDeclarationRector::class);
|
|
|
|
$rectorConfig->rule(DowngradeParameterTypeWideningRector::class);
|
|
|
|
$rectorConfig->rule(DowngradePregUnmatchedAsNullConstantRector::class);
|
|
|
|
$rectorConfig->rule(DowngradeStreamIsattyRector::class);
|
|
|
|
$rectorConfig->rule(DowngradeJsonDecodeNullAssociativeArgRector::class);
|
|
|
|
$rectorConfig->rule(DowngradePhp72JsonConstRector::class);
|
2020-09-09 16:32:28 +08:00
|
|
|
};
|