Visual studio code show syntax error in Codeigniter 3 how to fix them...
How to i remove these under line in visual studio code
CodePudding user response:
It's for PHP Intelephense version, the current version has some configuration that mark framework's code, just go back to old version
CodePudding user response:
Happened to me in PHP Codeigniter too, It's a Intelephense thing. You can disable Intelephense undefined property in Settings > Extensions > intelephense > Undefined property
But i think the best way to handle it is, add on top of document the property definition, to tell intelephense what is this property. Example:
For $this->data_session = $this->session->userdata();
Like this: