I'm using PhpStorm 7.1.3.
Whenever I use on of the PHP-built-in functions json_encode or json_decode PhpStorm says that this function is undefined.

I don't want to disable inspection for all undeclared functions. I also don't want to supress the inspection for every statement including json_*.
What's the easiest way to get rid of these warnings? Why do they even show up?
Your indexes may have been corrupted somehow (for whatever reason, e.g. crash/improper shutdown) or are simply out of date (in case of upgrade from previous version).
Please use File | Invalidate caches... and restart IDE.
For me the solution was to check this box:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With