2021-10-21 18:43:06 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare (strict_types=1);
|
2022-04-11 08:29:44 +00:00
|
|
|
namespace RectorPrefix20220411;
|
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;
|
2022-04-02 15:46:27 +00:00
|
|
|
use Rector\DowngradePhp54\Rector\Closure\DowngradeThisInClosureRector;
|
2021-11-15 16:32:42 +00:00
|
|
|
use Rector\DowngradePhp54\Rector\FuncCall\DowngradeIndirectCallByArrayRector;
|
2021-11-11 11:43:16 +00:00
|
|
|
use Rector\DowngradePhp54\Rector\FunctionLike\DowngradeCallableTypeDeclarationRector;
|
2021-11-10 12:08:08 +00:00
|
|
|
use Rector\DowngradePhp54\Rector\LNumber\DowngradeBinaryNotationRector;
|
2021-11-13 20:02:56 +00:00
|
|
|
use Rector\DowngradePhp54\Rector\MethodCall\DowngradeInstanceMethodCallRector;
|
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-15 16:32:42 +00:00
|
|
|
$services->set(\Rector\DowngradePhp54\Rector\FuncCall\DowngradeIndirectCallByArrayRector::class);
|
2021-11-11 11:43:16 +00:00
|
|
|
$services->set(\Rector\DowngradePhp54\Rector\FunctionLike\DowngradeCallableTypeDeclarationRector::class);
|
2021-11-10 12:08:08 +00:00
|
|
|
$services->set(\Rector\DowngradePhp54\Rector\LNumber\DowngradeBinaryNotationRector::class);
|
2021-11-13 20:02:56 +00:00
|
|
|
$services->set(\Rector\DowngradePhp54\Rector\MethodCall\DowngradeInstanceMethodCallRector::class);
|
2022-04-02 15:46:27 +00:00
|
|
|
$services->set(\Rector\DowngradePhp54\Rector\Closure\DowngradeThisInClosureRector::class);
|
2021-10-21 18:43:06 +00:00
|
|
|
};
|