postmark-php
postmark-php copied to clipboard
Cannot assign array to property Postmark\Models\PostmarkBounceActivation::$Bounce of type Postmark\Models\PostmarkBounce
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"));
I have a fix for this. It should be ready in the next few days.
We pushed a new release that fixes this issue.