Skip to content

Cannot assign array to property Postmark\Models\PostmarkBounceActivation::$Bounce of type Postmark\Models\PostmarkBounce #129

@ashgibson

Description

@ashgibson

I am getting this error when trying to reactivate a bounce using the following code.

$client = new PostmarkClient({token}); $client->activateBounce({bounceId});

I think it is because of Line 382 in PostmarkClient trying to cast the response to an array

return new PostmarkBounceActivation((array) $this->processRestRequest('PUT', "/bounces/{$id}/activate"));

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