Home > Back-end >  Remove Red Under Line In Visual Studio Code Show Error In Php
Remove Red Under Line In Visual Studio Code Show Error In Php

Time:01-11

Visual studio code show syntax error in Codeigniter 3 how to fix them...

enter image description here

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

enter image description here

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:

enter image description here

  • Related