mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 08:50:50 +00:00
8d92c466fd
* use RectorConfig in configs * update variable name * remove extra spaces * apply on configs * apply on e2e * update markdown files * remove extra spaces
17 lines
550 B
PHP
17 lines
550 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
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 {
|
|
$services = $rectorConfig->services();
|
|
|
|
$services->set(TernaryToElvisRector::class);
|
|
$services->set(DirNameFileConstantToDirConstantRector::class);
|
|
$services->set(ReplaceHttpServerVarsByServerRector::class);
|
|
};
|