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:

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

 

Does anyone know why this is happening now?

 

0

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

0

请先登录再写评论。