mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 19:53:14 +01:00
d1e09e3d5e
[ECS] remove ignored rules that are now fixed, use SimplePhpParser for ad-hoc node resolving (#1076)
22 lines
1.2 KiB
PHP
22 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix20211027;
|
|
|
|
use Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector;
|
|
use Rector\Php81\Rector\Class_\SpatieEnumClassToEnumRector;
|
|
use Rector\Php81\Rector\ClassConst\FinalizePublicClassConstantRector;
|
|
use Rector\Php81\Rector\MethodCall\MyCLabsMethodCallToEnumConstRector;
|
|
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
|
$services = $containerConfigurator->services();
|
|
$services->set(\Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector::class);
|
|
$services->set(\Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector::class);
|
|
$services->set(\Rector\Php81\Rector\MethodCall\MyCLabsMethodCallToEnumConstRector::class);
|
|
$services->set(\Rector\Php81\Rector\ClassConst\FinalizePublicClassConstantRector::class);
|
|
$services->set(\Rector\Php81\Rector\Property\ReadOnlyPropertyRector::class);
|
|
$services->set(\Rector\Php81\Rector\Class_\SpatieEnumClassToEnumRector::class);
|
|
};
|