Skip to content

[DeadCode] Deprecate RemoveTypedPropertyNonMockDocblockRector as no real value#8119

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-non-mock-docblock
Jun 30, 2026
Merged

[DeadCode] Deprecate RemoveTypedPropertyNonMockDocblockRector as no real value#8119
TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-non-mock-docblock

Conversation

@TomasVotruba

@TomasVotruba TomasVotruba commented Jun 30, 2026

Copy link
Copy Markdown
Member

I've just tested this rule on real project, it just makes mess :/

This rule only removes a single, very narrow @var SomeClass|MockObject docblock combination on an already-typed property. It carries no real value, so it is deprecated following the established DeprecatedInterface pattern.

  • implement DeprecatedInterface + @deprecated docblock
  • refactor() now throws ShouldNotHappenException
  • removed from DeadCodeLevel
  • removed test fixtures

@TomasVotruba TomasVotruba merged commit a5f53cc into main Jun 30, 2026
65 checks passed
@TomasVotruba TomasVotruba deleted the tv-deprecate-non-mock-docblock branch June 30, 2026 09:13
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