質問

I am using phpstorm. If a class is not imported properly via its use statement, I get a rather low-contrast indication, brown on gray background.

As this is a serious error I want to change that specific color into something more drastic. How to change that color?

A picture speaks more than words::

Low contrast example of missing use statement

I am talking about the backgroud of getCount-method and the AssetRepository class usage.

役に立ちましたか?

解決

You can change color here: Settings | Editor | Colors & Fonts | General | Warning (this is IDE-wide setting and will affect ALL projects)

Alternatively -- change severity from "Warning" to "Error" (or introduce your own with your own colors) in Settings | Inspections | PHP | Undefined | Undefined method (this is project-level setting so it could be different from project to project).

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top