Skip to content

Commit

Permalink
add separate DoctrineSetList::YAML_TO_ANNOTATIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Feb 11, 2024
1 parent 4300c37 commit 6a40957
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions config/sets/doctrine-code-quality.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,4 @@
'time_immutable' => 'TIME_IMMUTABLE',
]),
]);

$rectorConfig->import(__DIR__ . '/../yaml-to-annotations.php');
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
__DIR__ . '/yaml_mapping',
]);

$rectorConfig->import(__DIR__ . '/../../../../../../config/yaml-to-annotations.php');
$rectorConfig->sets([\Rector\Doctrine\Set\DoctrineSetList::YAML_TO_ANNOTATIONS]);
};
5 changes: 5 additions & 0 deletions src/Set/DoctrineSetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ final class DoctrineSetList implements SetListInterface
*/
public const DOCTRINE_CODE_QUALITY = __DIR__ . '/../../config/sets/doctrine-code-quality.php';

/**
* @var string
*/
public const YAML_TO_ANNOTATIONS = __DIR__ . '/../../config/yaml-to-annotations.php';

/**
* @var string
*/
Expand Down

0 comments on commit 6a40957

Please sign in to comment.