Skip to content

Support for list<Foo> type #134

@enumag

Description

@enumag

I noticed that TypeResolver currently doesn't support the list type which is generally used as subtype of array<int, Foo>, indicating it's an array that PHP's array_is_list() function would return true.

It's described in more detail in Psalm's documentation for instance: https://psalm.dev/docs/annotating_code/type_syntax/array_types/#lists

From browsing the code it seems this would need to be handled in TypeResolver::resolveCollection().

What do you think about supporting this in this library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions