Albert Ndizeye
Albert Ndizeye

Reputation: 151

Why does Visual Studio Code mark a false error in my PHP script?

Everything is running well but I ‘m still getting this red underline in the scripts. Any one to explain why and how to remove it? enter image description here

Upvotes: 1

Views: 3404

Answers (1)

gview
gview

Reputation: 15381

Switch to using the Inteliphense plugin.

The built in PHP language features have issues with some PHP features. Your code is validated under Inteliphense.

Remove any other PHP intellisense plugins.

Make sure that you have followed the Inteliphense instructions when you install it, specifically:

  • Go to Extensions.
  • Search for @builtin php
  • Disable PHP Language Features. Leave PHP Language Basics enabled for syntax highlighting.

Upvotes: 2

Related Questions