Skip to content

Prepare for phpdoc-parser 2.4 NameNode - #544

Merged
samsonasik merged 1 commit into
rectorphp:mainfrom
ondrejmirtes:phpdoc-parser-2.4
Oct 29, 2026
Merged

samsonasik merged 1 commit into
rectorphp:mainfrom
ondrejmirtes:phpdoc-parser-2.4

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Contributor
  • GenericTypeNode::$type can be a NameNode in phpdoc-parser 2.4, check for IdentifierTypeNode before reading the name
  • trim the leading backslash of targetEntity/targetDocument before creating FullyQualifiedObjectType, which was printed as \Foo in the docblock

- GenericTypeNode::$type can be a NameNode in phpdoc-parser 2.4, check for IdentifierTypeNode before reading the name
- trim the leading backslash of targetEntity/targetDocument before creating FullyQualifiedObjectType, which was printed as \\Foo in the docblock

Amp-Thread-ID: https://ampcode.com/threads/T-01a179f2-995f-7745-8d8c-4c174ba5c0ce
@samsonasik
samsonasik merged commit b35c390 into rectorphp:main Oct 29, 2026
8 checks passed
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