phpdoc-parser icon indicating copy to clipboard operation
phpdoc-parser copied to clipboard

Extension for custom tags

Open Danil42Russia opened this issue 2 years ago • 0 comments

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.

Danil42Russia avatar Feb 10 '23 19:02 Danil42Russia