mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
31 lines
1.6 KiB
PHP
31 lines
1.6 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Downgrade\Rector\LNumber\ChangePhpVersionInPlatformCheckRector;
|
|
use Rector\DowngradePhp74\Rector\Array_\DowngradeArraySpreadRector;
|
|
use Rector\DowngradePhp74\Rector\ArrowFunction\ArrowFunctionToAnonymousFunctionRector;
|
|
use Rector\DowngradePhp74\Rector\ClassMethod\DowngradeCovarianReturnTypeRector;
|
|
use Rector\DowngradePhp74\Rector\Coalesce\DowngradeNullCoalescingOperatorRector;
|
|
use Rector\DowngradePhp74\Rector\FuncCall\DowngradeArrayMergeCallWithoutArgumentsRector;
|
|
use Rector\DowngradePhp74\Rector\FuncCall\DowngradeStripTagsCallWithArrayRector;
|
|
use Rector\DowngradePhp74\Rector\LNumber\DowngradeNumericLiteralSeparatorRector;
|
|
use Rector\DowngradePhp74\Rector\Property\DowngradeTypedPropertyRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
$services->set(DowngradeTypedPropertyRector::class);
|
|
$services->set(ArrowFunctionToAnonymousFunctionRector::class);
|
|
$services->set(DowngradeCovarianReturnTypeRector::class);
|
|
$services->set(DowngradeNullCoalescingOperatorRector::class);
|
|
$services->set(DowngradeNumericLiteralSeparatorRector::class);
|
|
$services->set(DowngradeStripTagsCallWithArrayRector::class);
|
|
$services->set(DowngradeArraySpreadRector::class);
|
|
$services->set(DowngradeArrayMergeCallWithoutArgumentsRector::class);
|
|
$services->set(ChangePhpVersionInPlatformCheckRector::class)
|
|
->call('configure', [[
|
|
ChangePhpVersionInPlatformCheckRector::TARGET_PHP_VERSION => 70400,
|
|
]]);
|
|
};
|