Search code examples
phpidephpstorm

Meaning of a red wave line in a single file in PhpStorm


I am using a PhpStorm IDE, and only in one particular file, it started to display the name of the file and the name of the folders routing to that files with red waved underline (like a spell mistake in text-processors). Nothing important it catches my eyes all the time. Anyone know the reason and better how to get rid of it?


Solution

  • The lines mean that there is an inspection error. The error can be located by looking at that file an examining the right margin for a red bar like this:

    enter image description here

    Then you will see, similar to Word, a squiggle under the line of text, something like the following:

    enter image description here

    If the inspection looks incorrect, check your settings for the PHP version (File > Settings > Project Settings > PHP > PHP Language Level). If you decide the inspection is invalid, you can turn it off by clicking the place the error appears and then using the red "bulb" to the left:

    enter image description here