Telling Intelephense to ignore undefined property - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: Telling Intelephense to ignore undefined property (/showthread.php?tid=86059) |
Telling Intelephense to ignore undefined property - jetspeed - 01-05-2023 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'); RE: Telling Intelephense to ignore undefined property - 3kurnia1 - 01-05-2023 same problem, i just add and save this ("intelephense.diagnostics.undefinedProperties": false), on file settings.json and then reload vscode, it works fine. RE: Telling Intelephense to ignore undefined property - kenjis - 01-06-2023 PHP Code: /** |