Skip to content

[Visibility] Retarget ChangeMethodVisibilityRector to Class_ node - #8831

Merged
TomasVotruba merged 2 commits into
mainfrom
tv-retarget-cmv-rule
Oct 25, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
tv-retarget-cmv-rule

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Follows #8824. Subscribes to Class_ instead of ClassMethod.

The parent class is resolved once per class via getClassReflection() + getParentClass(), then matching methods are iterated and their visibility changed - instead of re-resolving the parent scope on every ClassMethod visit. Drops the ParentClassScopeResolver + ScopeFetcher dependency.

Behaviour unchanged, existing fixtures pass.

@TomasVotruba
TomasVotruba merged commit 4ecc736 into main Oct 25, 2026
46 of 49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-retarget-cmv-rule branch October 25, 2026 20:45
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