Skip to content

Commit 6c9e29f

Browse files
11.x improve resend transport response handling - fix (#54006)
* [11.x] Improve Resend transport response handling * [11.x] Fix/Improve Resend transport response handling - adjusted throw_if condition
1 parent a401108 commit 6c9e29f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Mail/Transport/ResendTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function doSend(SentMessage $message): void
9999
'attachments' => $attachments,
100100
]);
101101

102-
throw_if($result['statusCode'] != Response::HTTP_OK, Exception::class, $result['message']);
102+
throw_if(isset($result['statusCode']) && $result['statusCode'] != Response::HTTP_OK, Exception::class, $result['message']);
103103
} catch (Exception $exception) {
104104
throw new TransportException(
105105
sprintf('Request to Resend API failed. Reason: %s.', $exception->getMessage()),

0 commit comments

Comments
 (0)