Skip to content

[TypeDeclaration] Deprecate StrictStringParamConcatRector as producing too many false positives#8090

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-depre-51
Jun 27, 2026
Merged

[TypeDeclaration] Deprecate StrictStringParamConcatRector as producing too many false positives#8090
TomasVotruba merged 1 commit into
mainfrom
tv-depre-51

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

This rule infers a string param type from concat usage, but in practice it produces too many false positives.

Deprecated following the same pattern as NewInInitializerRector:

  • Rule now implements DeprecatedInterface, refactor() throws ShouldNotHappenException
  • Removed from TypeDeclarationLevel set
  • Test directory removed
  • @see annotation dropped, phpstan ignore added

DeprecatedRulesReporter warns users who still register or skip the rule.

@TomasVotruba TomasVotruba merged commit 6dcc126 into main Jun 27, 2026
65 checks passed
@TomasVotruba TomasVotruba deleted the tv-depre-51 branch June 27, 2026 15:14
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