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

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

  •  14-11-2019
  •  | 
  •  

Frage

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?

War es hilfreich?

Lösung

You can fix it with phpdoc, though there is a known issue about it.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top