bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.61k stars 94 forks source link

Undefined variable not highlightted outside functions #2818

Open dynagence opened 6 months ago

dynagence commented 6 months ago

Hi, Why $test666 is not highlighted ? How can I highlight undefined variables outside functions ?

Screenshots image

Platform and version Windows / Intelephense 1.10.2 image

dynagence commented 5 months ago

Were you able to fix the bug?

secretfork commented 1 month ago

I don't even get undefined variables inside function highlighted. It just says "@var unset $remote_path" when i hover such a variable. Same with unused variables, so for now i'm using pspcs variable analysis just for unused and undefined variables in my codebase.

Using vs-code 1.92.2, vscode-intelephense 1.12.5, and i have tried reinstalling and purging settings to verify that isn't the issue.