Code Hinting on included files.

I have searched and read quite a few posts but not seen an answer to this.

If I have file b.php thats included in a.php which creates a new instance of it $b - new B(). Then file c.php includes a.php is there a way to add in code hints so it shows $b when i type $? If i type $b-> then code hinting shows for the functions in class B, but not before this. Might have over simplified the question, or not explained it correctly but this woks in netbeans.




Thanks

a.php


<?php
include('b.php');


$b = new B();


b.php




<?php


class B {
    function a(){


    }


    function b(){


    }
}



c.php




<?php
include('a.php');


$b->


0
4 comments
Avatar
Permanently deleted user

Not sure.
It works for me in EAP PS-110.293
example.png

What version are you using?

0

Hi, thanks for the reply, I am using version 2.1.2.

I did mention that functions are listed in code hinting when you enter the object name but in netbeans you actually get a list of objects too. Is there any way to enable this in PhpStorm?

codehint.jpg

0

Please update to latest 2.1.x build before reporting any problems.
http://www.jetbrains.com/phpstorm/download/

0

Even with 2.1.5 its the same.

0

Please sign in to leave a comment.