Welcome Guest, Not a member yet? Register   Sign In
Telling Intelephense to ignore undefined property

Hi guys,

I just noticed in the recent Intelephense updates that CI3 models get flagged as potential problems.

For example, the second line is flagged as "undefined property $this->messagesModel". What's the best way to tell it to ignore such errors?

PHP Code:

same problem,
i just add and save this ("intelephense.diagnostics.undefinedProperties": false), on file settings.json and then reload vscode, it works fine.

PHP Code:
 * @property Messages_model $messagesModel
class Home extends MY_Controller 

Theme © iAndrew 2016 - Forum software by © MyBB