Skip to content

Use PreferGenericTemplateOnSameUnionTypeRule from symplify/phpstan-rules - #8639

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-remove-prefer-generic-rule
Oct 12, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-remove-prefer-generic-rule

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Follow-up to symplify/phpstan-rules#349 (released in 14.18.2).

The rule now ships in symplify/phpstan-rules under the rector-rules set, which phpstan.neon already includes via vendor/symplify/phpstan-rules/config/rector-rules.neon. So the local copy is removed and enforcement is preserved through the package.

  • bump symplify/phpstan-rules to ^14.18.2
  • drop local utils/phpstan rule, test and sources
  • drop the local rules: registration

Rule extracted to symplify/phpstan-rules 14.18.2; registered in the rector-rules set, which phpstan.neon already includes, so enforcement is preserved.
@TomasVotruba
TomasVotruba force-pushed the tv-remove-prefer-generic-rule branch from 607dcf8 to ed62f66 Compare October 12, 2026 11:29
@TomasVotruba
TomasVotruba merged commit 8f578af into main Oct 12, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-remove-prefer-generic-rule branch October 12, 2026 11:33
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