Skip to content

Use IntersectionTypeNode from phpstan/phpdoc-parser - #815

Merged
TomasVotruba merged 1 commit into
rectorphp:mainfrom
ondrejmirtes:intersection-type-node
Oct 28, 2026
Merged

TomasVotruba merged 1 commit into
rectorphp:mainfrom
ondrejmirtes:intersection-type-node

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Contributor

Replace BracketsAwareIntersectionTypeNode with IntersectionTypeNode from phpstan/phpdoc-parser in 4 rules. The Rector class only changed __toString(). Rector now prints type nodes with the phpdoc-parser Printer, so the output does not change.

After this PR, rector-src can remove BracketsAwareIntersectionTypeNode.

BracketsAwareIntersectionTypeNode only changed __toString(). Rector prints
type nodes with the phpdoc-parser Printer now.

Amp-Thread-ID: https://ampcode.com/threads/T-01a17930-0285-73c5-a957-4325c77aa1b2
@TomasVotruba
TomasVotruba merged commit 619b8b8 into rectorphp:main Oct 28, 2026
8 checks passed
@TomasVotruba

Copy link
Copy Markdown
Member

Thanks 👍

I'll remove the BracketsAwareIntersectionTypeNode

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.

2 participants