Skip to content

Commit 2673982

Browse files
[Notifier] Bring consistency to bridges
1 parent b011176 commit 2673982

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

SmscTransport.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,10 @@ protected function doSend(MessageInterface $message): SentMessage
5959
throw new UnsupportedMessageTypeException(__CLASS__, SmsMessage::class, $message);
6060
}
6161

62-
$from = $message->getFrom() ?: $this->from;
63-
6462
$body = [
6563
'login' => $this->login,
6664
'psw' => $this->password,
67-
'sender' => $from,
65+
'sender' => $message->getFrom() ?: $this->from,
6866
'phones' => $message->getPhone(),
6967
'mes' => $message->getSubject(),
7068
'fmt' => 3, // response as JSON

0 commit comments

Comments
 (0)