Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a0e83ed

Browse files
[Notifier] Bring consistency to bridges
1 parent 97a3fe6 commit a0e83ed

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

SinchTransport.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,11 @@ protected function doSend(MessageInterface $message): SentMessage
5757
throw new UnsupportedMessageTypeException(__CLASS__, SmsMessage::class, $message);
5858
}
5959

60-
$from = $message->getFrom() ?: $this->from;
61-
6260
$endpoint = sprintf('https://%s/xms/v1/%s/batches', $this->getEndpoint(), $this->accountSid);
6361
$response = $this->client->request('POST', $endpoint, [
6462
'auth_bearer' => $this->authToken,
6563
'json' => [
66-
'from' => $from,
64+
'from' => $message->getFrom() ?: $this->from,
6765
'to' => [$message->getPhone()],
6866
'body' => $message->getSubject(),
6967
],

0 commit comments

Comments
 (0)