Skip to content

[trav] Remove PhpDocInfoRemovingNodeVisitor, inline into RectorRunner - #8597

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-remove-phpdoc-info-removing-visitor
Oct 10, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-remove-phpdoc-info-removing-visitor

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The one-off PhpDocInfoRemovingNodeVisitor was only used in RectorRunner::cloneNode() to null out PHP_DOC_INFO on the probe clone, so a skipped rule cannot leak a docblock mutation back to the original node.

Inlined as an anonymous visitor at the single call site and dropped the standalone class. Behavior unchanged.

@TomasVotruba
TomasVotruba merged commit 9b1eb59 into main Oct 10, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-remove-phpdoc-info-removing-visitor branch October 10, 2026 17:16
@TomasVotruba TomasVotruba changed the title Remove PhpDocInfoRemovingNodeVisitor, inline into RectorRunner [trav] Remove PhpDocInfoRemovingNodeVisitor, inline into RectorRunner Oct 10, 2026
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