![]() |
Visual Studio Code PHP intellisense errors for request object - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: Visual Studio Code PHP intellisense errors for request object (/showthread.php?tid=79103) |
Visual Studio Code PHP intellisense errors for request object - aswinkumar863 - 04-20-2021 In Visual Studio Code editor with PHP code Intelephense extension installed, showing undefined method error in request object like attached image. https://ibb.co/SncjR5L BUT WORKS FINE WHILE RUNNING I hope it would Request instead of RequestInterface in doc blocks in the controller.php https://github.com/codeigniter4/CodeIgniter4/blob/develop/system/Controller.php#L37 Also found the related issue in the response object from CURLRequest class. RE: Visual Studio Code PHP intellisense errors for request object - marciano.dili - 04-20-2021 I have just started learning about CI4 and I was having the same issue. After installing this extension => "https://marketplace.visualstudio.com/items?itemName=small.php-ci" I faced no more issues with that however I disabled the PHP Inteliphense and enabled the PHP IntelliSense in turn. I hope that helps. |