Skip to content

Incorrect handling of arguments, not working. Solution. #1

Description

@josenobile

Hello,

In whmcs.php method _call() changed from
return call_user_func_array([$this, 'execute'], [$function, $arguments]);
to
return call_user_func_array([$this, 'execute'], [$function, $arguments[0]]);
Because the arguments are in position 0 of $arguments.

This change correct a bug that does not allow send properly the arguments to whmcs to work.

The second change is just my style.

public function processResponse($response)
{
return new WhmcsResponse($response); was changed to
return $response;

I prefer arrays to work than objects with private variables.

PHP version: 5.6.27

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