Skip to content

Deprecate symfonyRoute and symfonyValidator args in withAttributesSets() - #8317

Merged
TomasVotruba merged 2 commits into
mainfrom
tv-cleanu
Aug 7, 2026
Merged

Deprecate symfonyRoute and symfonyValidator args in withAttributesSets()#8317
TomasVotruba merged 2 commits into
mainfrom
tv-cleanu

Conversation

@TomasVotruba

@TomasVotruba TomasVotruba commented Aug 7, 2026

Copy link
Copy Markdown
Member

Both symfonyRoute and symfonyValidator args are already covered by the symfony arg of withAttributesSets(). They are no longer applied on their own and now report a deprecation warning instead.

 return RectorConfig::configure()
-    ->withAttributesSets(symfonyRoute: true, symfonyValidator: true);
+    ->withAttributesSets(symfony: true);

Passing them still runs, but prints:

[WARNING] The "->withAttributesSets(symfonyRoute: true)" argument is deprecated and no
          longer applied. It is already included in the "symfony: true" argument, use
          it instead.

Previously both args threw an InvalidConfigurationException when combined with symfony: true; that exception is gone, as the args are now no-ops.

This will be handled by composer-based sets 👍

@TomasVotruba
TomasVotruba enabled auto-merge (squash) August 7, 2026 15:51
@TomasVotruba
TomasVotruba merged commit 02ca77e into main Aug 7, 2026
63 of 64 checks passed
@TomasVotruba
TomasVotruba deleted the tv-cleanu branch August 7, 2026 15:53
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