Skip to content

[TypeDeclaration] Deprecate AddPropertyTypeDeclarationRector as too niche and never used, not part of any set - #8774

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-add-property-type-declaration
Oct 22, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-add-property-type-declaration

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Deprecates AddPropertyTypeDeclarationRector, following the same path as the other recently deprecated niche rules.

The rule adds a property type by configured parent-class/property pairs. It is in no set or level, so it only ever ran via an explicit withRules()/withConfiguredRule(), and it is too niche to maintain generically - a custom rule for the exact project case is clearer and safer.

Changes:

  • mark DeprecatedInterface + @deprecated, gut refactor() to throw
  • keep the AddPropertyTypeDeclaration value object (@api) for existing configs
  • remove the rule tests

@TomasVotruba
TomasVotruba merged commit d47d9f3 into main Oct 22, 2026
50 of 51 checks passed
@TomasVotruba
TomasVotruba deleted the tv-deprecate-add-property-type-declaration branch October 22, 2026 18:34
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