2020-09-28 21:42:20 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
use Rector\Core\Configuration\Option;
|
2020-10-31 17:00:11 +00:00
|
|
|
use Rector\Php74\Rector\Property\TypedPropertyRector;
|
2020-09-28 21:42:20 +00:00
|
|
|
use Rector\Set\ValueObject\SetList;
|
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
|
|
// get parameters
|
|
|
|
$parameters = $containerConfigurator->parameters();
|
|
|
|
|
|
|
|
// Define what rule sets will be applied
|
2021-05-06 20:06:31 +00:00
|
|
|
$containerConfigurator->import(SetList::DEAD_CODE);
|
2020-09-28 21:42:20 +00:00
|
|
|
|
|
|
|
// get services (needed for register a single rule)
|
|
|
|
// $services = $containerConfigurator->services();
|
|
|
|
|
|
|
|
// register a single rule
|
|
|
|
// $services->set(TypedPropertyRector::class);
|
|
|
|
};
|