Skip to content

Commit

Permalink
[Notifier] Bring consistency to bridges
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed May 12, 2023
1 parent b011176 commit 2673982
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SmscTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,10 @@ protected function doSend(MessageInterface $message): SentMessage
throw new UnsupportedMessageTypeException(__CLASS__, SmsMessage::class, $message);
}

$from = $message->getFrom() ?: $this->from;

$body = [
'login' => $this->login,
'psw' => $this->password,
'sender' => $from,
'sender' => $message->getFrom() ?: $this->from,
'phones' => $message->getPhone(),
'mes' => $message->getSubject(),
'fmt' => 3, // response as JSON
Expand Down

0 comments on commit 2673982

Please sign in to comment.