基本上,我有以下设置:
class A {
/**
* This is some documentation
*/
public function foo() {}
}
class B extends A {
/**
* This documentation is way more specific than in class A
*/
public function foo() {}
}
当我尝试使用phpDocumentor2记录这个时,它在类B的方法foo()中显示"This is some documentation",然而我希望它说"这份文档比类A的更加具体"。在phpDocumenter 1中,一切看起来都和预期一样。
那么,这里发生了什么?这是phpDocumentor2的新默认行为吗?如果是,有没有办法改变它?还是这只是一个bug?
注意:在研究过程中,我经常遇到{@inheritDoc},但我想要完全相反的行为。