Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ashgibson opened this issue Mar 23, 2024 · 2 comments

Comments

@ashgibson
Copy link
Contributor

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

@ewood-ac
Copy link
Contributor

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

@ewood-ac ewood-ac mentioned this issue Mar 27, 2024
ewood-ac added a commit that referenced this issue Mar 27, 2024
This addresses issue #129.

---------

Co-authored-by: Ash <1744544+ashgibson@users.noreply.github.com>
Co-authored-by: Eli Wood <ewood@PC26VM7WKL.local>
@ewood-ac
Copy link
Contributor

We pushed a new release that fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants