mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-09 04:32:33 +00:00
b0211bc3d8
fa75fcf0d1
[Performance][PhpVersionResolver] Cache resolve platform/require from composer.json on ProjectComposerJsonPhpVersionResolver (#5542)
15 lines
552 B
PHP
15 lines
552 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202402;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector;
|
|
use Rector\Php53\Rector\Ternary\TernaryToElvisRector;
|
|
use Rector\Php53\Rector\Variable\ReplaceHttpServerVarsByServerRector;
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->rule(TernaryToElvisRector::class);
|
|
$rectorConfig->rule(DirNameFileConstantToDirConstantRector::class);
|
|
$rectorConfig->rule(ReplaceHttpServerVarsByServerRector::class);
|
|
};
|