2021-05-05 23:56:59 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2022-04-13 16:29:57 +00:00
|
|
|
namespace RectorPrefix20220413;
|
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\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 {
|
2022-04-12 14:41:09 +00:00
|
|
|
$rectorConfig->phpVersion(\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
|
|
|
};
|