Skip to content

Extension for custom tags #178

@Danil42Russia

Description

@Danil42Russia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions