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

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:
$this->load->model('Messages_model''messagesModel');
$this->messagesModel->some_fn(); 
Reply
#2

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

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




Theme © iAndrew 2016 - Forum software by © MyBB