Extension for custom tags
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- PHP
- 星标
- 1.5k
- 派生
- 78
- 平均合并
- 9 小时 5 分钟
- 30 天内合并 PR
- 5
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
phpstan/phpdoc-parser 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 68/100
phpstan/phpdoc-parser#317 ·
-
难度 5/5 一周以上 新手友好度 25/100
phpstan/phpdoc-parser#281 · 2 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
phpstan/phpdoc-parser#271 · 1 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 35/100
phpstan/phpdoc-parser#219 ·
-
难度 3/5 1-2 天 新手友好度 42/100
phpstan/phpdoc-parser#173 · 1 条评论 ·
查看 phpstan/phpdoc-parser 的全部 Issue
相似的 Issue
-
priority: p3
难度 2/5 1-3 小时 新手友好度 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
难度 2/5 1-3 小时 新手友好度 78/100
nextcloud/fulltextsearch#1011 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 78/100
phpstan/phpstan-doctrine#794 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
Automattic/static-site-importer#1767 ·