PhpStorm Warnings on JSON functions
json, php, phpstorm
Solution
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.
Problem
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?