2021-10-21 18:43:06 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare (strict_types=1);
|
2021-11-11 00:28:34 +00:00
|
|
|
namespace RectorPrefix20211111;
|
2021-10-21 18:43:06 +00:00
|
|
|
|
|
|
|
use Rector\Core\Configuration\Option;
|
|
|
|
use Rector\Core\ValueObject\PhpVersion;
|
2021-11-09 22:18:11 +00:00
|
|
|
use Rector\DowngradePhp54\Rector\Array_\ShortArrayToLongArrayRector;
|
2021-10-21 18:43:06 +00:00
|
|
|
use Rector\DowngradePhp54\Rector\Closure\DowngradeStaticClosureRector;
|
2021-11-10 12:08:08 +00:00
|
|
|
use Rector\DowngradePhp54\Rector\LNumber\DowngradeBinaryNotationRector;
|
2021-10-21 18:43:06 +00:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
|
|
|
$parameters = $containerConfigurator->parameters();
|
|
|
|
$parameters->set(\Rector\Core\Configuration\Option::PHP_VERSION_FEATURES, \Rector\Core\ValueObject\PhpVersion::PHP_53);
|
|
|
|
$services = $containerConfigurator->services();
|
2021-11-09 22:18:11 +00:00
|
|
|
$services->set(\Rector\DowngradePhp54\Rector\Array_\ShortArrayToLongArrayRector::class);
|
2021-10-21 18:43:06 +00:00
|
|
|
$services->set(\Rector\DowngradePhp54\Rector\Closure\DowngradeStaticClosureRector::class);
|
2021-11-10 12:08:08 +00:00
|
|
|
$services->set(\Rector\DowngradePhp54\Rector\LNumber\DowngradeBinaryNotationRector::class);
|
2021-10-21 18:43:06 +00:00
|
|
|
};
|