FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=5306&edit=1

ID: 5306
Updated by: demon.gene@gmail.com
Reported By: drewish@katherinehouse.com
Summary: {@inheritdoc} doesn't work with implementor of an
interface
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: PhpDocumentor
PHP Version: 5.0.4
-Assigned To:
+Assigned To: ashnazg
-Roadmap Versions: 1.5.0a1
+Roadmap Versions:
New Comment:

-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/).


Previous Comments:
------------------------------------------------------------------------

[2005-09-05 19:47:15] 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 ]

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 31, '12 at 9:31p
activeAug 31, '12 at 9:31p
posts1
users1
websitepear.php.net

1 user in discussion

Demon Gene: 1 post

People

Translate

site design / logo © 2022 Grokbase