简体   繁体   中英

PHPStorm - show all errors on inspection

PHPStorm newbie question.

I'd installed PHPStorm yesterday and was very impressed. It identified countless small issues with my code, like referencing non-static classes statically - I loved that it highlighted the problems in my open PHP files. There was a bit long list in the "inspection results" section (I think) which identified errors in various groupings. Great!

Today I can't get it to identify any errors at all, other than "Typos". Same project.

Clearly I messed up aa configuration somewhere, but I'm pretty baffled as to where. I've been through the Preferences section for the last hour trying different things, but can't get it to work as before.

Any tips...?

  • Ben

Editor not doing proper code highlighting or not working inspections can be caused by the corrupted caches.

The solution is to do File | Invalidate Caches and restart the IDE.

Invalidating caches didn't worked for me.

In my case inspections were disabled because I had activated a wrong profile that wasn't checking PHP issues.

So be sure to check the used profile:

右键单击检查指示器

单击配置检查

选择合适的档案

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM