-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
@garak
Description
Problem: ContainerInterface returns array|bool|float|int|string|null as value.
This is causing false positive in phpstan analysis, when you know that returned value has a specific type and you try to use it. For example, if you retrieve a string using $container->getParameter('my_parameter'), you currently can't do a concatenation, since phpstan is complaining about Binary operation "." [...] results in an error
It would be nice if the plugin could be able to retrieve actual type from container and override the return type of getParameter method.
Metadata
Metadata
Assignees
Labels
No labels