thanosp/phpstorm-inheritdoc

Multi-level inheritance

Closed this issue · 1 comments

Lets have this code:

class A {
    /**
     * Documentation
     */
    public function a() {}
}

class B extends A {
    /**
     * @inheritdoc
     */
    public function a() {}
}

class C extends B {
    /**
     * @inheritdoc
     */
    public function a() {}
}

Class B will have the inherited documentation on the method a() displayed correctly (taken from class A), however class C will display only "@inheritdoc" from its direct ancestor class B.

If there would be no overriden method a() in class B, then the inherited documentation in class C will be ok.

A picture is worth a thousand words:
image

Using version 1.3

Hi @oujesky thanks for the feedback :)
I've updated the plugin to ignore to let it look deeper for a valid docblock