Skip to content

Commit ffb133a

Browse files
Merge branch '5.4' into 6.3
* 5.4: [Mime] Fix serializing uninitialized RawMessage::$message to null [Notifer][Smsapi] Set messageId of SentMessage [DX] Use Symfony "dark-mode"-responsive logo in README support lazy evaluated exception messages with Xdebug 3
2 parents 8f6550b + 27dd547 commit ffb133a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SmsapiTransport.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ protected function doSend(MessageInterface $message): SentMessage
120120
throw new TransportException(sprintf('Unable to send the SMS: "%s".', $content['message'] ?? 'unknown error'), $response);
121121
}
122122

123-
return new SentMessage($message, (string) $this);
123+
$sentMessage = new SentMessage($message, (string) $this);
124+
$sentMessage->setMessageId($content['list'][0]['id'] ?? '');
125+
126+
return $sentMessage;
124127
}
125128
}

0 commit comments

Comments
 (0)