Missing XCache constants ?

I'm working on code that uses the xcache extension.

When i attempt to use either of the Xcache constants, the IDE tells me that they are undefined?

Am i missing something?

Looking at the xcache stub used for autocomplete- i do not see them defined;

 

current workaround is to manually create another autocomplete file for my project that includes these constants:

const XC_TYPE_PHP = 0;
const XC_TYPE_VAR = 1;

But i'd hate to have to do this for every project. Has anyone else seen this, is there a recommended way to modify the included stubs- or is there a way to define things like this for all projects without having to do this additional configuration each time?

0
1 comment

Hi there,

Check this comment: https://youtrack.jetbrains.com/issue/WI-18465#comment=27-616992

 

What can be done: https://github.com/JetBrains/phpstorm-stubs

You can submit your PR there and once/if accepted it will be available in every PhpStorm.

 

P.S. In current PhpStorm version you can do even different thingy:

https://youtrack.jetbrains.com/issue/WI-30134#comment=27-1590796 -- have a look at the top notification bar on that screenshot

0

Please sign in to leave a comment.