PhpStorm 2020.2 - PHP Built-in functions are not recognized

后端 未结 1 1679
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-16 07:06

I just installed PhpStorm 2020.2, and notice that all php base classes like Closure or mysqli are not been identified by the IDE.

Looking at the left where the PHP ba

相关标签:
1条回答
  • 2021-01-16 08:02

    It's a known issue. AFAIK there is still no solid idea on why it happens and why only some users are affected.

    https://youtrack.jetbrains.com/issue/WI-54626 -- watch this ticket (star/vote/comment) to get notified on any progress.


    Current workaround:

    1. Close IDE
    2. Locate folder where PhpStorm 2020.2 stores indexes/caches on your computer (see below)
    3. Delete that folder (as standard "Invalidate caches" does not help here)
    4. Launch IDE

    Typical locations for caches folder for different OS:

    • Windows: %USERPROFILE%\AppData\Local\JetBrains\PhpStorm2020.2\caches
    • Linux: ~/.cache/JetBrains/PhpStorm2020.2/caches
    • macOS: ~/Library/Caches/JetBrains/PhpStorm2020.2/caches
    0 讨论(0)
提交回复
热议问题