Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support for ContainerInterface::getParameter return type #127

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

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

        AltStyle によって変換されたページ (->オリジナル) /