I'm using PhpStorm as current IDE.
The only issue I have with it is that it can't find my php-library.
I've installed this: PHP-JS.
And by install, i mean generated the php-js.so file which I've loaded via php5enmod php-js.
The library works:
// This is a valid namespace AND classname
$context = new JS\Context;
$result = $context->evaluate("var x = 3; var y = 4; var z = x + y; ++z;");
// will output 8
For some (well, not that strange) reason, PhpStorm can't find the JS namespace and consequently no classes from that namespace.
Is there a way I can tell PhpStorm that I'm actually calling an existing method from a valid class from a valid namespace?
I've tried to make it work using docBlock tags but none seems to match what I need.
.sofile and detect PHP code/interface from there. You need to do the same as ALL other binary php extensions do (e.g. Phalcon) -- makes stubs (limited PHP version) of your classes (classes/methods/functions/etc with full doc but empty bodies). You canCtrl+Clickon any standard PHP class (e.g. MySQL) and see how it's done yourself..sofile. I'm asking how to let it know i'm actually using a valid namespace. And not mark it as invalid