You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I think Intelephense should (could...?) not report a Undefined function '...' error when in block that has a function_exists(...) check around it. Honestly I'm unsure whether this is a bug report or a feature request :)
Expected behavior
I expect Intelephense not to report Undefined function 'xdebug_break'. intelephense(P1010) in the above case. (I also tried namespacing the checked function: function_exists('\\xdebug_break')), but still yields the same result.)
Note: The same result happens regardless of whether xdebug extension is actually loaded in PHP or not (phpenmod/phpdismod xdebug) - but I don't think it should matter, because the function_exists should be enough.
Screenshots
Platform and version
Windows 11 + WSL2
PHP Intelephense v1.12.6
The text was updated successfully, but these errors were encountered:
Describe the bug
I think Intelephense should (could...?) not report a
Undefined function '...'
error when in block that has afunction_exists(...)
check around it. Honestly I'm unsure whether this is a bug report or a feature request :)To Reproduce
Expected behavior
I expect Intelephense not to report
Undefined function 'xdebug_break'. intelephense(P1010)
in the above case. (I also tried namespacing the checked function:function_exists('\\xdebug_break'))
, but still yields the same result.)Note: The same result happens regardless of whether xdebug extension is actually loaded in PHP or not (
phpenmod/phpdismod xdebug
) - but I don't think it should matter, because thefunction_exists
should be enough.Screenshots
Platform and version
The text was updated successfully, but these errors were encountered: