mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
19 lines
836 B
PHP
19 lines
836 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Downgrade\Rector\LNumber\ChangePhpVersionInPlatformCheckRector;
|
|
use Rector\DowngradePhp72\Rector\FunctionLike\DowngradeParamObjectTypeDeclarationRector;
|
|
use Rector\DowngradePhp72\Rector\FunctionLike\DowngradeReturnObjectTypeDeclarationRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
$services->set(DowngradeParamObjectTypeDeclarationRector::class);
|
|
$services->set(DowngradeReturnObjectTypeDeclarationRector::class);
|
|
$services->set(ChangePhpVersionInPlatformCheckRector::class)
|
|
->call('configure', [[
|
|
ChangePhpVersionInPlatformCheckRector::TARGET_PHP_VERSION => 70200,
|
|
]]);
|
|
};
|