2020-12-08 20:02:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-03-15 14:19:57 +01:00
|
|
|
use Rector\Core\Configuration\Option;
|
|
|
|
use Rector\Core\ValueObject\PhpVersion;
|
2021-03-01 13:10:50 +01:00
|
|
|
use Rector\DowngradePhp70\Rector\FunctionLike\DowngradeTypeDeclarationRector;
|
2020-12-08 20:02:26 +08:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
2021-03-15 14:19:57 +01:00
|
|
|
$parameters = $containerConfigurator->parameters();
|
|
|
|
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_56);
|
|
|
|
|
2020-12-08 20:02:26 +08:00
|
|
|
$services = $containerConfigurator->services();
|
2021-03-01 13:10:50 +01:00
|
|
|
$services->set(DowngradeTypeDeclarationRector::class);
|
2020-12-08 20:02:26 +08:00
|
|
|
};
|