Getting errors using Intelephense? Here’s the solution.

So, here’s a quick one: In case you’re a PHP developer, then you should be using the Intelephense plugin (assuming you are using Visual Studio Code of course).

There is a case where you might jump on a weird error which makes no sense: some of the default PHP methods flagged as unknown.

 

Which makes no sense. The solution is easy:

Try [ctrl] + [shift] + p and select “Index workspace” and problem is solved:

Share your thoughts