From a1d17e253cba75622b6d74f3b040a716956e1c48 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 1 Sep 2025 17:08:45 +0200 Subject: [PATCH] make use of internal set list --- src/Configuration/RectorConfigBuilder.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Configuration/RectorConfigBuilder.php b/src/Configuration/RectorConfigBuilder.php index ffd0193c01d..9e45ec5276e 100644 --- a/src/Configuration/RectorConfigBuilder.php +++ b/src/Configuration/RectorConfigBuilder.php @@ -31,6 +31,7 @@ use Rector\Set\SetManager; use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\SetList; +use Rector\Symfony\Set\SymfonyInternalSetList; use Rector\Symfony\Set\SymfonySetList; use Rector\ValueObject\Configuration\LevelOverflow; use Rector\ValueObject\PhpVersion; @@ -504,15 +505,15 @@ public function withAttributesSets( } if ($fosRest || $all) { - $this->sets[] = __DIR__ . '/../../vendor/rector/rector-symfony/config/sets/fosrest/annotations-to-attributes.php'; + $this->sets[] = SymfonyInternalSetList::FOS_REST_ANNOTATIONS_TO_ATTRIBUTES; } if ($jms || $all) { - $this->sets[] = __DIR__ . '/../../vendor/rector/rector-symfony/config/sets/jms/annotations-to-attributes.php'; + $this->sets[] = SymfonyInternalSetList::JMS_ANNOTATIONS_TO_ATTRIBUTES; } if ($sensiolabs || $all) { - $this->sets[] = __DIR__ . '/../../vendor/rector/rector-symfony/config/sets/sensiolabs/annotations-to-attributes.php'; + $this->sets[] = SymfonyInternalSetList::SENSIOLABS_ANNOTATIONS_TO_ATTRIBUTES; } if ($phpunit || $all) {