2021-05-05 23:56:59 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2022-04-12 06:58:51 +00:00
|
|
|
namespace RectorPrefix20220412;
|
2021-05-05 23:56:59 +02:00
|
|
|
|
2022-04-12 11:52:08 +00:00
|
|
|
use Rector\Config\RectorConfig;
|
2021-05-05 23:56:59 +02:00
|
|
|
use Rector\Core\Configuration\Option;
|
|
|
|
use Rector\Core\ValueObject\PhpVersion;
|
2021-05-06 10:23:37 +02:00
|
|
|
use Rector\DowngradePhp53\Rector\Dir\DirConstToFileConstRector;
|
2022-04-12 11:52:08 +00:00
|
|
|
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
|
|
|
$parameters = $rectorConfig->parameters();
|
2021-10-21 18:43:06 +00:00
|
|
|
$parameters->set(\Rector\Core\Configuration\Option::PHP_VERSION_FEATURES, \Rector\Core\ValueObject\PhpVersion::PHP_52);
|
2022-04-12 11:52:08 +00:00
|
|
|
$services = $rectorConfig->services();
|
2021-05-10 22:23:08 +00:00
|
|
|
$services->set(\Rector\DowngradePhp53\Rector\Dir\DirConstToFileConstRector::class);
|
2021-05-05 23:56:59 +02:00
|
|
|
};
|