From ef07deae3e4091ebf8b10491b54d50333ea89bc1 Mon Sep 17 00:00:00 2001 From: Jon Behr Date: Wed, 8 May 2024 13:56:01 +0100 Subject: [PATCH 1/2] Fix Postmark response --- src/Adapters/PostmarkMailAdapter.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Adapters/PostmarkMailAdapter.php b/src/Adapters/PostmarkMailAdapter.php index a6102d32..0e61c98a 100644 --- a/src/Adapters/PostmarkMailAdapter.php +++ b/src/Adapters/PostmarkMailAdapter.php @@ -6,6 +6,7 @@ use Illuminate\Support\Arr; use Postmark\Models\DynamicResponseModel; +use Postmark\Models\PostmarkResponse; use Postmark\PostmarkClient; use Sendportal\Base\Services\Messages\MessageTrackingOptions; @@ -48,8 +49,8 @@ protected function resolveClient(): PostmarkClient return $this->client; } - protected function resolveMessageId(DynamicResponseModel $result): string + protected function resolveMessageId(PostmarkResponse $result): string { - return (string)$result->__get('MessageID'); + return $result->getMessageID(); } } From a6c8981ca9a56e5d777a65b302c06b2c7de2e7ff Mon Sep 17 00:00:00 2001 From: JonoB Date: Wed, 8 May 2024 12:56:46 +0000 Subject: [PATCH 2/2] Apply php-cs-fixer changes --- src/Adapters/PostmarkMailAdapter.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Adapters/PostmarkMailAdapter.php b/src/Adapters/PostmarkMailAdapter.php index 0e61c98a..9e5afcde 100644 --- a/src/Adapters/PostmarkMailAdapter.php +++ b/src/Adapters/PostmarkMailAdapter.php @@ -5,7 +5,6 @@ namespace Sendportal\Base\Adapters; use Illuminate\Support\Arr; -use Postmark\Models\DynamicResponseModel; use Postmark\Models\PostmarkResponse; use Postmark\PostmarkClient; use Sendportal\Base\Services\Messages\MessageTrackingOptions;