Skip to content

phpDocumentor shows private properties as inherited #786

Closed
flack opened this Issue Mar 24, 2013 · 7 comments

3 participants

@flack
flack commented Mar 24, 2013

See for example here:

http://api.openpsa2.org/classes/midgard_admin_asgard_copytree.html#property__services

$_services is a private property of the grandparent class, but for some reason, phpDocumentor shows it in the class content (but not in the sidebar navigation)

@bkuhl
bkuhl commented Mar 24, 2013

What command are you using to generate this documentation?

@flack
flack commented Mar 24, 2013

@bkuhl: Nothing special, just phpdoc installed from PEAR. I have a minimal config that sets title and files to include, and I'm using a slightly modified version of the responsive theme. The command line looks like this:

phpdoc -c path_to_config.dist.xml --template /path/to/template
@bkuhl
bkuhl commented Mar 24, 2013
@flack
flack commented Mar 26, 2013

just a small update: I was able to work around this bug in the template XSLs by changing all the relevant tests to look like this:

<xsl:apply-templates select="method[@visibility != 'private' or not(inherited_from)]">
</xsl:apply-templates>

Depending on what you're trying to achieve you might have to change the tests accordingly, but the jist of it should be clear.

This means that the links I posted earlier will no longer exhibit the problem, but it's only a workaround, the underlying problem (I guess it is in the Inherit Behavior plugin) is still there

@mvriel
phpDocumentor member
mvriel commented Apr 30, 2013

Thanks for reporting this, I have marked this as a bug to be resolved for version 2.0

@mvriel
phpDocumentor member
mvriel commented Jun 23, 2013

This issue is fixed in 2.0.0b6 and higher in the default (responsive-twig) template

@mvriel mvriel closed this Jun 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.