Skip to content

Commit

Permalink
Remove non existant UnionTypesRector class usage
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Aug 26, 2023
1 parent 19fbb81 commit 4b54845
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions templates/project/rector.php.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 %}
]);
};

0 comments on commit 4b54845

Please sign in to comment.