Syntax highlighting in services.yaml for @service_container

Hi. I am using phpstorm 2017.3 and symfony 2.7 framework.

When I open services.yaml in phpstorm, @service_container is highlighted.  Hovering over it shows the error: Expect instance of: Symfony\Component\DependencyInjection\Container

here is an excerpt showing the warning:

class: AppBundle\Service\Utils
arguments: [ @doctrine.orm.entity_manager, @service_container, @logger ]


Does anyone know why this is happening now?


1 comment

Can't advise without taking a look into a project or files involved.


Please sign in to leave a comment.