2020-09-09 16:32:28 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-10-09 18:49:16 +08:00
|
|
|
use Rector\DowngradePhp74\Rector\Array_\DowngradeArraySpreadRector;
|
2020-09-09 16:32:28 +08:00
|
|
|
use Rector\DowngradePhp74\Rector\ArrowFunction\ArrowFunctionToAnonymousFunctionRector;
|
2020-12-04 19:30:37 +08:00
|
|
|
use Rector\DowngradePhp74\Rector\ClassMethod\DowngradeContravariantArgumentTypeRector;
|
2020-12-05 00:22:12 +01:00
|
|
|
use Rector\DowngradePhp74\Rector\ClassMethod\DowngradeCovariantReturnTypeRector;
|
2020-09-09 16:32:28 +08:00
|
|
|
use Rector\DowngradePhp74\Rector\Coalesce\DowngradeNullCoalescingOperatorRector;
|
2020-10-18 16:37:02 +02:00
|
|
|
use Rector\DowngradePhp74\Rector\FuncCall\DowngradeArrayMergeCallWithoutArgumentsRector;
|
2020-10-06 14:56:41 +08:00
|
|
|
use Rector\DowngradePhp74\Rector\FuncCall\DowngradeStripTagsCallWithArrayRector;
|
2020-12-09 18:33:25 +07:00
|
|
|
use Rector\DowngradePhp74\Rector\Identical\DowngradeFreadFwriteFalsyToNegationRector;
|
2020-10-06 17:55:43 +08:00
|
|
|
use Rector\DowngradePhp74\Rector\LNumber\DowngradeNumericLiteralSeparatorRector;
|
2020-09-09 16:32:28 +08:00
|
|
|
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);
|
2020-12-04 19:28:32 +08:00
|
|
|
$services->set(DowngradeCovariantReturnTypeRector::class);
|
2020-12-04 19:30:37 +08:00
|
|
|
$services->set(DowngradeContravariantArgumentTypeRector::class);
|
2020-09-09 16:32:28 +08:00
|
|
|
$services->set(DowngradeNullCoalescingOperatorRector::class);
|
2020-10-06 17:55:43 +08:00
|
|
|
$services->set(DowngradeNumericLiteralSeparatorRector::class);
|
2020-10-06 14:56:41 +08:00
|
|
|
$services->set(DowngradeStripTagsCallWithArrayRector::class);
|
2020-10-09 18:49:16 +08:00
|
|
|
$services->set(DowngradeArraySpreadRector::class);
|
2020-10-18 16:37:02 +02:00
|
|
|
$services->set(DowngradeArrayMergeCallWithoutArgumentsRector::class);
|
2020-12-09 18:33:25 +07:00
|
|
|
$services->set(DowngradeFreadFwriteFalsyToNegationRector::class);
|
2020-09-09 16:32:28 +08:00
|
|
|
};
|