Incorrect autocomplete, $this->getRequest in Controller class is referencing to Symfony\Bundle\FrameworkBundle\Controller\Request
Question
I'm trying out PhpStorm, but I'm having problem with the autocomplete of Request object when returned from $this->getRequest()
of the Controller class.
The documentation always shows it's from Symfony\Bundle\FrameworkBundle\Controller\Request
hence no autocomplete. It should really be from Symfony\Component\HttpFoundation\Request
. does anybody here has encountered this problem?
Solution
You can fix it with phpdoc, though there is a known issue about it.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow