Skip to content

Webhook credentialManager bug #25

@leolinardi

Description

@leolinardi

A bug on Webhook.php was found in line 41, which causes an error of
TypeError Argument 1 passed to Webfox\Xero\WebhookEvent::__construct() must be an instance of Webfox\Xero\OauthCredentialManager, null given

resolved by assigning the $credentialManager first, before creating the instance Collection
$this->credentialManager = $credentialManager;
$this->events = new Collection(array_map(function($event) {
return new WebhookEvent($this->credentialManager, $this->accountingApi, $event);
}, $this->properties->get('events')));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions