phpDocumentor / phpDocumentor/ReflectionDocBlock
FQSEN resolution fails on anonymous classes
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 9.4k
- Forks
- 137
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 1
Description
When an anonymous class is given to a context, it is unable to resolve the classes of properties in the docblock, even if they are imported.
By removing the error on the given line (phpDocumentor/ReflectionCommon#21), I was able to get it to function; however it was still not resolving the namespace of the property.
Code sample:
https://gist.github.com/iggyvolz/5061fe63090588d0f4f96874380b5ef3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the anonymous-class example in the linked gist and trace the failure at phpDocumentor/ReflectionCommon#21. Reproduce the case, then verify that imported property types resolve to their namespace without removing the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100