Incorrect autocomplete, $this->getRequest in Controller class is referencing to Symfony\Bundle\FrameworkBundle\Controller\Request

StackOverflow https://stackoverflow.com/questions/8998745

  •  14-11-2019
  •  | 
  •  

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?

Was it helpful?

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
scroll top