Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Methods with no parameters that override a method with parameters output parameter information of overridden method. #71

Open
pgraham opened this issue Jul 11, 2012 · 1 comment

Comments

@pgraham
Copy link

pgraham commented Jul 11, 2012

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.
@pgraham
Copy link
Author

pgraham commented Jul 11, 2012

Test that demonstrates the issue: a1cdcce

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant