Skip to content

[TypeInfo] Fails to parse value-of<T> #60643

@jack-worman

Description

@jack-worman

Symfony version(s) affected

7.3.0

Description

I am getting DomainException: Unhandled "value-of" identifier. when trying to parse a type with phpstan's value-of type.

https://phpstan.org/writing-php-code/phpdoc-types#key-and-value-types-of-arrays-and-iterables

How to reproduce

* @var value-of<FooEnum>

Possible Solution

I believe we need to add a case for value-of in the StringTypeResolver.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions