vscode-intelephense icon indicating copy to clipboard operation
vscode-intelephense copied to clipboard

Ibase functions unrecognized

Open whrax opened this issue 2 years ago • 3 comments

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 imagen

imagen

imagen

Platform and version Windows 11 with intelephense 1.9.1

whrax avatar Jan 04 '23 15:01 whrax

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.

bmewburn avatar Jan 04 '23 19:01 bmewburn

These functions have been re-enabled: https://github.com/JetBrains/phpstorm-stubs/blob/master/interbase/interbase.php

mlazdans avatar Mar 02 '23 17:03 mlazdans

@whrax You can add the stub in the extension settings:

imagen

imagen

rafarx avatar Dec 15 '23 15:12 rafarx

stubs have since been updated

bmewburn avatar Apr 11 '24 22:04 bmewburn