2021-05-05 23:56:59 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2022-04-08 08:52:55 +00:00
|
|
|
namespace RectorPrefix20220408;
|
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;
|
2021-06-02 10:21:10 +00:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
2021-05-05 23:56:59 +02:00
|
|
|
$parameters = $containerConfigurator->parameters();
|
2021-10-21 18:43:06 +00:00
|
|
|
$parameters->set(\Rector\Core\Configuration\Option::PHP_VERSION_FEATURES, \Rector\Core\ValueObject\PhpVersion::PHP_52);
|
2021-05-05 23:56:59 +02:00
|
|
|
$services = $containerConfigurator->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
|
|
|
};
|