mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-11 19:15:10 +01:00
19 lines
626 B
PHP
19 lines
626 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Renaming\Rector\Name\RenameClassRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
|
|
# https://github.com/doctrine/dbal/blob/master/UPGRADE.md#deprecated-type-constants
|
|
$services->set(RenameClassRector::class)
|
|
->call('configure', [[
|
|
RenameClassRector::OLD_TO_NEW_CLASSES => [
|
|
'Doctrine\DBAL\Types\Type' => 'Doctrine\DBAL\Types\Types',
|
|
],
|
|
]]);
|
|
};
|