Skip to content

Do not auto-register PreferGenericTemplateOnSameUnionTypeRule in rector-rules set - #350

Closed
TomasVotruba wants to merge 1 commit into
mainfrom
tv-unregister-prefer-generic
Closed

TomasVotruba wants to merge 1 commit into
mainfrom
tv-unregister-prefer-generic

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The rule added in #349 is stricter than the rest of the rector-rules set and flags valid code in sibling packages (rector-phpunit etc.) that include the set in their own PHPStan run.

Keep the rule class shippable, but remove it from the auto-registered set. Consumers opt in via their own rules: registration instead of having it forced on every package that includes rector-rules.neon.

…or-rules set

The rule is stricter than the rest of the set and flags valid code in sibling packages. Keep the class shippable, but let consumers opt in via their own rules: registration instead of forcing it on every package that includes the rector-rules set.
@TomasVotruba
TomasVotruba deleted the tv-unregister-prefer-generic branch October 12, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant