postmark-php icon indicating copy to clipboard operation
postmark-php copied to clipboard

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

Open ashgibson opened this issue 11 months ago • 1 comments

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"));

ashgibson avatar Mar 23 '24 06:03 ashgibson

I have a fix for this. It should be ready in the next few days.

ewood-ac avatar Mar 25 '24 16:03 ewood-ac

We pushed a new release that fixes this issue.

ewood-ac avatar Mar 27 '24 15:03 ewood-ac