Skip to content

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

Closed
TomasVotruba wants to merge 1 commit into
mainfrom
tv-deprecate-attributes-args
Closed

Deprecate symfonyRoute and symfonyValidator args in withAttributesSets()#8316
TomasVotruba wants to merge 1 commit into
mainfrom
tv-deprecate-attributes-args

Conversation

@TomasVotruba

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.

@TomasVotruba
TomasVotruba deleted the tv-deprecate-attributes-args branch August 7, 2026 15:49
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