get an undefined ‘namespace’ error in phpstorm even after a namespace has been defined

I emailed JetBrains support and they got back to me with the fix and it is exactly what @LazyOne mentioned in the comments section above.

I simply deleted the following folder on my Mac and it resolved the issue:

~Library/Caches/JetBrains/PhpStorm2020.2

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top