php-stubs / wordpress-stubs

Up-to-date WordPress function and class declaration stubs for static analysis by PHPStan
https://packagist.org/packages/php-stubs/wordpress-stubs
MIT License
146 stars 18 forks source link

Issue with wp_get_global_stylesheet Function Not Recognized by Intelliphense #152

Closed S-Blank closed 4 months ago

S-Blank commented 8 months ago

Description

I'm experiencing an issue where the WordPress function wp_get_global_stylesheet is not recognized by Intelliphense in my development environment.

Steps to Reproduce

  1. Include WordPress stubs in the project.
  2. Use the wp_get_global_stylesheet function in the code.
  3. Observe that Intelliphense marks this function as undefined.

Expected behavior

Intelliphense should recognize the wp_get_global_stylesheet function and provide relevant IntelliSense features such as auto-completion and function documentation.

Actual behavior

The function wp_get_global_stylesheet is marked as undefined by Intelliphense.

System information

szepeviktor commented 8 months ago

Thank you for your report. That function is on line 111534. What is your stubs' version?

johnbillion commented 4 months ago

I think this can be closed, there's nothing different or incorrect about that function definition. It could be an issue with caching, intelephense still indexing the project, etc, etc.