Skip to content

Deprecate DowngradeParameterTypeWideningRector - #411

Merged
TomasVotruba merged 1 commit into
mainfrom
deprecate-downgrade-parameter-type-widening
Oct 18, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
deprecate-downgrade-parameter-type-widening

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

This rule was used for Symfony container internals. It is no longer needed nor safe, as it depends on autoload order.

  • Mark the rule with DeprecatedInterface so existing configs warn instead of silently applying it (it now throws if ever invoked)
  • Drop it from the downgrade-php72 set
  • Remove the now-orphaned analyzers (BuiltInMethodAnalyzer, OverrideFromAnonymousClassMethodAnalyzer, SealedClassAnalyzer, NativeParamToPhpDocDecorator) that were only used by this rule
  • Remove the obsolete rule tests and issue-reproduction tests tied to the removed behavior

Used for Symfony container internals, no longer needed nor safe as it depends on autoload order. Mark with DeprecatedInterface, drop from downgrade-php72 set, and remove now-orphaned analyzers and obsolete tests.
@TomasVotruba
TomasVotruba merged commit c96c1c4 into main Oct 18, 2026
9 checks passed
@TomasVotruba
TomasVotruba deleted the deprecate-downgrade-parameter-type-widening branch October 18, 2026 22:50
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