Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$this->getRequest()我正在尝试 PhpStorm,但是当从Controller 类返回时,我遇到了 Request 对象的自动完成问题。
$this->getRequest()
该文档始终显示它来自Symfony\Bundle\FrameworkBundle\Controller\Request因此没有自动完成功能。真的应该是从Symfony\Component\HttpFoundation\Request。这里有人遇到过这个问题吗?
Symfony\Bundle\FrameworkBundle\Controller\Request
Symfony\Component\HttpFoundation\Request
您可以使用 phpdoc 修复它,尽管存在一个已知问题。