Skip to content

Commit e16a45d

Browse files
authored
make use of internal set list (#7208)
1 parent b32cebd commit e16a45d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Configuration/RectorConfigBuilder.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
use Rector\Set\SetManager;
3232
use Rector\Set\ValueObject\DowngradeLevelSetList;
3333
use Rector\Set\ValueObject\SetList;
34+
use Rector\Symfony\Set\SymfonyInternalSetList;
3435
use Rector\Symfony\Set\SymfonySetList;
3536
use Rector\ValueObject\Configuration\LevelOverflow;
3637
use Rector\ValueObject\PhpVersion;
@@ -504,15 +505,15 @@ public function withAttributesSets(
504505
}
505506

506507
if ($fosRest || $all) {
507-
$this->sets[] = __DIR__ . '/../../vendor/rector/rector-symfony/config/sets/fosrest/annotations-to-attributes.php';
508+
$this->sets[] = SymfonyInternalSetList::FOS_REST_ANNOTATIONS_TO_ATTRIBUTES;
508509
}
509510

510511
if ($jms || $all) {
511-
$this->sets[] = __DIR__ . '/../../vendor/rector/rector-symfony/config/sets/jms/annotations-to-attributes.php';
512+
$this->sets[] = SymfonyInternalSetList::JMS_ANNOTATIONS_TO_ATTRIBUTES;
512513
}
513514

514515
if ($sensiolabs || $all) {
515-
$this->sets[] = __DIR__ . '/../../vendor/rector/rector-symfony/config/sets/sensiolabs/annotations-to-attributes.php';
516+
$this->sets[] = SymfonyInternalSetList::SENSIOLABS_ANNOTATIONS_TO_ATTRIBUTES;
516517
}
517518

518519
if ($phpunit || $all) {

0 commit comments

Comments
 (0)