Search code examples
phpstorm

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 a a 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

Solution

  • 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.