phpdoctor
phpdoctor copied to clipboard
Methods with no parameters that override a method with parameters output parameter information of overridden method.
trafficstars
Consider the following inheritance situation:
/**
* Base constructor.
*
* @param string arg1 The first argument.
* @param strign arg2 The second argument.
*/
abstract class BaseClass {
public function __construct($arg1, $arg2) { /* ... */ }
}
/**
* Concrete constructor.
*/
class ConcreteClass extends BaseClass {
public function __construct() {
parent::__construct('value1', 'value2');
}
}
Currently, the doc generated for ContreteClass::__construct will contain the parameter information for the base class constructor:
Constructor Detail
public void __construct()
Parameters:
- arg1 - The first parameter.
- arg2 - The second parameter.
Test that demonstrates the issue: a1cdcce754894aa438cd46b787a5d6512e2f4dae
Note that this test is in a branch that requires php5.3 and that the referenced commit is dependant on other commits to this branch.