mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
* [Downgrade] Drop ChangePhpVersionInPlatformCheckRector as not useful, paltform check false is good enough * fixup! [Downgrade] Drop ChangePhpVersionInPlatformCheckRector as not useful, paltform check false is good enough
24 lines
1.3 KiB
PHP
24 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\DowngradePhp71\Rector\Array_\SymmetricArrayDestructuringToListRector;
|
|
use Rector\DowngradePhp71\Rector\ClassConst\DowngradeClassConstantVisibilityRector;
|
|
use Rector\DowngradePhp71\Rector\FunctionLike\DowngradeNullableTypeParamDeclarationRector;
|
|
use Rector\DowngradePhp71\Rector\FunctionLike\DowngradeNullableTypeReturnDeclarationRector;
|
|
use Rector\DowngradePhp71\Rector\FunctionLike\DowngradeVoidTypeReturnDeclarationRector;
|
|
use Rector\DowngradePhp71\Rector\String_\DowngradeNegativeStringOffsetToStrlenRector;
|
|
use Rector\DowngradePhp71\Rector\TryCatch\DowngradePipeToMultiCatchExceptionRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
$services->set(DowngradeNullableTypeParamDeclarationRector::class);
|
|
$services->set(DowngradeNullableTypeReturnDeclarationRector::class);
|
|
$services->set(DowngradeVoidTypeReturnDeclarationRector::class);
|
|
$services->set(DowngradeClassConstantVisibilityRector::class);
|
|
$services->set(DowngradePipeToMultiCatchExceptionRector::class);
|
|
$services->set(SymmetricArrayDestructuringToListRector::class);
|
|
$services->set(DowngradeNegativeStringOffsetToStrlenRector::class);
|
|
};
|