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

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

2 participants

@DerManoMann

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

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 dbu added a commit to jackalope/jackalope-prismic that referenced this issue Apr 20, 2014
@dbu dbu phpdoctor wants {} around inheritDoc - but the feature is broken anyw… 9e6c78f
@dbu dbu added a commit to jackalope/jackalope-prismic that referenced this issue Apr 20, 2014
@dbu dbu phpdoctor wants {} around inheritDoc - but the feature is broken anyw… b5b9e23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment