Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a1

Request #5306 {@inheritdoc} doesn't work with implementor of an interface
Submitted: 2005-09-05 18:47 UTC Modified: 2012-08-31 21:31 UTC
From: drewish Assigned: ashnazg
Status: Wont fix Package: PhpDocumentor
PHP Version: 5.0.4 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-09-05 18:47 UTC] drewish
Description: ------------ The {@inheritdoc} tag can be used to include documentation from a base class into members of a derived class. It seems logical that it should work the same way for classes that implement an interface. Test script: --------------- <?php /** * Makes bars */ interface bar { /** * The Baz function * @return void */ function baz(); } /** * Foo bar */ class foo implements bar { /** * {@inheritdoc } */ function baz() { print 'wacka'; } } ?> Expected result: ---------------- Copied and pasted from the browser to give the rough idea: Class Methods method baz [line 23] void baz( string $pork) The Baz function Parameters: string $pork [ Top ] Actual result: -------------- You get the following warning: Warning - {@inheritdoc} can only be used in the docblock of a child class The output (copied and pasted from the browser) looks like: Class Methods method baz [line 23] void baz( mixed $pork) [ Top ]

Comments

 [2012-08-31 21:31 UTC] ashnazg (Chuck Burgess)
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: ashnazg -Roadmap Versions: 1.5.0a1 +Roadmap Versions:
No more feature work on phpDocumentor 1.x. Check out the new phpDocumentor 2.x (http://www.phpdoc.org/).