mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
cd2a644e0c
[Core] Refactor RectifiedAnalyzer: early check against AbstractScopeAwareRector instead of Original node (#2295)
15 lines
658 B
PHP
15 lines
658 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix20220512;
|
|
|
|
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 (\Rector\Config\RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->rule(\Rector\Php53\Rector\Ternary\TernaryToElvisRector::class);
|
|
$rectorConfig->rule(\Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector::class);
|
|
$rectorConfig->rule(\Rector\Php53\Rector\Variable\ReplaceHttpServerVarsByServerRector::class);
|
|
};
|