Skip to content

Commit 96ea8de

Browse files
samsonasikArshid
authored andcommitted
Keep flag fosRest, jms, sensiolabs on RectorConfigBuilder::withAttributesSets() with direct file (rectorphp#7205)
* Keep flag fosRest, jms, sensiolabs on RectorConfigBuilder::withAttributesSets() with direct file * Fix path
1 parent b5aec39 commit 96ea8de

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/Configuration/RectorConfigBuilder.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,18 @@ public function withAttributesSets(
503503
$this->sets[] = DoctrineSetList::GEDMO_ANNOTATIONS_TO_ATTRIBUTES;
504504
}
505505

506+
if ($fosRest || $all) {
507+
$this->sets[] = __DIR__ . '/../../vendor/rector/rector-symfony/config/sets/fosrest/annotations-to-attributes.php';
508+
}
509+
510+
if ($jms || $all) {
511+
$this->sets[] = __DIR__ . '/../../vendor/rector/rector-symfony/config/sets/jms/annotations-to-attributes.php';
512+
}
513+
514+
if ($sensiolabs || $all) {
515+
$this->sets[] = __DIR__ . '/../../vendor/rector/rector-symfony/config/sets/sensiolabs/annotations-to-attributes.php';
516+
}
517+
506518
if ($phpunit || $all) {
507519
$this->sets[] = PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES;
508520
}

0 commit comments

Comments
 (0)