37

I have this error everywhere in my Controller where I "render" or I access a variable through a getParameter:

expected "\Symfony\Bundle\FrameworkBundle\Controller\string" got string

What's wrong?

Antoine Nedelec
  • 655
  • 8
  • 21

1 Answers1

103

It is not an error of your code, it's a error on your IDE, I assume that you are using PHPStorm, go to File > Invalidate Caches/ Restart .. that should solve it.

Gmo Quinteros
  • 1,170
  • 1
  • 9
  • 10