Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stof opened this issue Sep 11, 2024 · 0 comments
Open

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

stof opened this issue Sep 11, 2024 · 0 comments

Comments

@stof
Copy link
Contributor

stof commented Sep 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant