Skip to content

[Set] Add SymfonySetList::COMPOSER_BASED constant - #982

Merged
TomasVotruba merged 1 commit into
mainfrom
symfony-set-list-composer-based
Aug 2, 2026
Merged

[Set] Add SymfonySetList::COMPOSER_BASED constant#982
TomasVotruba merged 1 commit into
mainfrom
symfony-set-list-composer-based

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Exposes the composer-based set as a constant, same as PHPUnitSetList::COMPOSER_BASED in rector-phpunit.

 public const string CONFIGS = __DIR__ . '/../../config/sets/symfony/configs.php';
+
+/**
+ * Rules bound to the exact Symfony package version they are available from
+ */
+public const string COMPOSER_BASED = __DIR__ . '/../../config/sets/symfony/composer-based.php';

Needed by rectorphp/rector-src#8259, where withComposerBased(symfony: true) loads this single set instead of the whole SetGroup::SYMFONY group.

@TomasVotruba
TomasVotruba enabled auto-merge (squash) August 2, 2026 08:59
@TomasVotruba
TomasVotruba merged commit 45622e1 into main Aug 2, 2026
7 checks passed
@TomasVotruba
TomasVotruba deleted the symfony-set-list-composer-based branch August 2, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant