phpstorm doesn't show inherited methods in code completion

Hi, I got this:


========
class myParent{

    public function __construct($id, $name){
        //....
    }
}

class myChild extends myParent{

    public function showMe(){
        //....
    }

}

==========

when I type :

$b = new myChild();

I expect the code completion / tooltip will appear and show me the parameters I should pass (i.e. $id and $name) to the constructor. However, such hints doesn't show. This hints shows only when there is a constructor defined in myChild class.

Is it a bug of PHPStorm or I missed something in the editor settings??

0
Avatar
Permanently deleted user

I can confirm this bug in 2.1.5.
It does highlight it and say $id is missing, but thats it.

It does seem to work properly in the latest 3.0 110.44 EAP version.

0
Avatar
Permanently deleted user

Downloaded the 3.0 EAP  and it's working now. Thanks!

0

请先登录再写评论。