Extension for custom tags
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
Start by tracing how PhpDoc input containing custom tags is parsed and where it currently fails before reaching TypeNodeResolverExtension. Define the parser and extension behavior needed for tuple and shape tags, then verify that those tags reach the extension's resolve call without breaking existing PhpDoc parsing.
Written by the indexing model from the issue text.
Description
Description
It would be cool to see the extension for custom tags.
We have our own tags that describe Array shapes as in PhpStan:
/**
* @param tuple(T1, T2, ..., Tn) $tuple
* @param shape(k1:T1, k2:T2, ..., kn:Tn) $shape
*/
Why?
I want to make an extension for PhpStan, which through TypeNodeResolverExtension, would be able to tell what type is here.
Problem
At the moment, the problem occurs while parsing a PhpDoc and does not reach the resolve call of TypeNodeResolverExtension.
- Dominant language
- PHP
- Stars
- 1.5k
- Forks
- 78
- Avg merge
- 9h 5m
- Merged PRs (30d)
- 5
Contributor guide
No contributing guide indexed for this repository
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.
More from phpstan/phpdoc-parser
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
phpstan/phpdoc-parser#317 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
phpstan/phpdoc-parser#281 · 2 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
phpstan/phpdoc-parser#271 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
phpstan/phpdoc-parser#219 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
phpstan/phpdoc-parser#173 · 1 comment ·
All issues in phpstan/phpdoc-parser
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·