PEAR lib in Vagrant: "Undefined class"?
Hi,
I have Vagrant configured for my project. Running PHPUnit and debugging tests inside it works great from the iDE.
But, PhpStorm doesn't know anything about libs installed from PEAR in Vagrant. For example:
$pager = Pager::factory($pager_params); // pear lib
When I click on the `factory`, I'm not able to see its code. Hovering over `Pager` gives me "Undefined class Pager. The complition for `$pager` doesn't work.
How do I configure PhpStorm to load the code definition from the run env, which is Vagrant?
Please sign in to leave a comment.
Hi Dawid,
To be able to resolve these objects, PhpStorm has to index contents of the PHP files containing their declaration.
I'd suggest that you do the following: