ActiveCampaign/postmark-php

Messagestream wrongly described

Closed this issue · 1 comments

When phpstan run through my code it gave me error due to bad docs:

Parameter $messageStream of method Postmark\PostmarkClient::sendEmailWithTemplate() expects array|null, string|null given

This is how I use your template:
image

my Mail::getMessageStream looks like:

    public function getMessageStream():?string
    {
        return $this->messageStream;
    }

\Postmark\PostmarkClient::sendEmailWithTemplate

When in postmark application I see that

image

I think that documentation should'd be changed to:

I have fixed this in the next release. Thanks for bringing it to our attention.