vscode-intelephense
vscode-intelephense copied to clipboard
Ibase functions unrecognized
Describe the bug Intelephense reporting ibase functions as undefined even with interbase set in stubs. I'm using php 7.4.29 knowing that interbase does not come by default with it, but I've added manually. Setting "intelephense.environment.phpVersion" to 7.3 works as expected.
To Reproduce Set "intelephense.environment.phpVersion" to version 7.4 or above.
Expected behavior Recognizing ibase functions when added interbase to stubs with "intelephense.environment.phpVersion" set to 7.4 or above.
Screenshots
Platform and version Windows 11 with intelephense 1.9.1
They are tagged as removed in php 7.4 . https://github.com/JetBrains/phpstorm-stubs/blob/0dcae3360530cdfd5aaa3c7a54571539b5e03674/interbase/interbase.php#L138
If this is incorrect you cant submit a PR to the upstream repo. Alternatively you can copy that file remove everything but the removed definitions, remove @remove
and put the file somewhere in your workspace folder.
These functions have been re-enabled: https://github.com/JetBrains/phpstorm-stubs/blob/master/interbase/interbase.php
@whrax You can add the stub in the extension settings:
stubs have since been updated