Skip to content

DI parameters that contain a list are not reported as a list #406

@stof

Description

@stof

When using $container->getParameter('parameter_containing_a_list'), the type provided by the extension is array<int, T> (with the appropriate type for T).
This causes issues when running phpstan in bleeding and passing that value to a function expecting list<T>.

It would be great if the extension could report the type as list<T> when the parameter value is a list.

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