Skip to content

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

@pgraham

Description

@pgraham

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions