{@inheritDoc} doesn't support multiple levels of inheritage #35

Open
DerManoMann opened this Issue Dec 10, 2010 · 1 comment

Comments

Projects
None yet
2 participants
@DerManoMann
Contributor

DerManoMann commented Dec 10, 2010

If a method/class is overwritten/extended multiple times with both sublalsses using {@inheritdoc}, the tag is not resolved.
Instead, the {@inheritdoc} of the respective parent class is used.

The code would need to go up the class hierarchy until it finds the first non {@inheritdoc} documentation block.

@dbu

This comment has been minimized.

Show comment
Hide comment
@dbu

dbu May 26, 2011

another non-working case is:
class A with method a
class B extends A but does not overwrite method a
class C extends B and overwrites method a, uses {@inheritdoc}

the doc of method a in class C is just empty.

dbu commented May 26, 2011

another non-working case is:
class A with method a
class B extends A but does not overwrite method a
class C extends B and overwrites method a, uses {@inheritdoc}

the doc of method a in class C is just empty.

dbu added a commit to jackalope/jackalope-prismic that referenced this issue Apr 20, 2014

dbu added a commit to jackalope/jackalope-prismic that referenced this issue Apr 20, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment