From 4b54845c3ceba55ced4b5f710d31bf7bc20b2764 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 26 Aug 2023 14:44:07 +0200 Subject: [PATCH] Remove non existant UnionTypesRector class usage --- templates/project/rector.php.twig | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/templates/project/rector.php.twig b/templates/project/rector.php.twig index 5e2e01d72..6d0d0a555 100644 --- a/templates/project/rector.php.twig +++ b/templates/project/rector.php.twig @@ -20,9 +20,6 @@ declare(strict_types=1); use Rector\Config\RectorConfig; use Rector\Php70\Rector\FunctionLike\ExceptionHandlerTypehintRector; use Rector\Php71\Rector\FuncCall\CountOnNullRector; -{% if (project.name == 'block-bundle' and branch.name == '4.x') or (project.name == 'entity-audit-bundle' and branch.name == '1.x') or (project.name == 'admin-bundle' and branch.name == '4.x') %} -use Rector\Php80\Rector\FunctionLike\UnionTypesRector; -{% endif %} use Rector\Set\ValueObject\LevelSetList; return static function (RectorConfig $rectorConfig): void { @@ -40,22 +37,5 @@ return static function (RectorConfig $rectorConfig): void { $rectorConfig->skip([ CountOnNullRector::class, ExceptionHandlerTypehintRector::class, -{% if project.name == 'block-bundle' and branch.name == '4.x' %} - UnionTypesRector::class => [ - __DIR__.'/src/Templating/Helper/BlockHelper.php', - ], -{% elseif project.name == 'entity-audit-bundle' and branch.name == '1.x' %} - UnionTypesRector::class => [ - __DIR__.'/src/AuditConfiguration.php', - __DIR__.'/src/AuditReader.php', - __DIR__.'/src/Controller/AuditController.php', - __DIR__.'/src/EventListener/LogRevisionsListener.php', - __DIR__.'/src/Revision.php', - ], -{% elseif project.name == 'admin-bundle' and branch.name == '4.x' %} - UnionTypesRector::class => [ - __DIR__.'/src/Controller/CRUDController.php', - ], -{% endif %} ]); };