skip to Main Content

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

2

Answers


  1. It’s for PHP Intelephense version, the current version has some configuration that mark framework’s code, just go back to old version

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search