Skip to content

Net_EPP_Frame_Command constructor requires a type argument #9

@vhraban

Description

@vhraban

Epp/Frame/Command.php, line 8

function __construct($command, $type) {

The constructor is declared so that $type variable is required although many classes (for instrance, Login) call the parent constructor with only $command specified.

The line should be changed to

function __construct($command, $type="") {

And line 17 should be changed from
if (isset($this->type)) {
to
if (!empty($this->type)) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions