microsoft / microsoft/tolerant-php-parser
Why is QualifiedName::getResolvedName disabled for Node\TraitUseClause?
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 894
- Forks
- 85
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 3
Description
When I need to resolve the FQN of the use TestTrait I cannot use the handy getResolvedName. Why is that?
namespace YYY;
use \XXX\TestTrait;
class TestClazz
{
use TestTrait;
Thanks!
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 in src/Node/QualifiedName.php around the disabled getResolvedName logic referenced by the issue, and trace how Node\TraitUseClause is handled. Compare the example namespace and trait-use nodes with the supported cases; done means establishing whether resolution should support this node and documenting or implementing the required change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100