8000 [Notifier] Fix AllMySms bridge body content · symfony/symfony@d1d7656 · GitHub
[go: up one dir, main page]

Skip to content

Commit d1d7656

committed
[Notifier] Fix AllMySms bridge body content
1 parent e066c3e commit d1d7656

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ protected function doSend(MessageInterface $message): SentMessage
6464
$endpoint = sprintf('https://%s/sms/send/', $this->getEndpoint());
6565
$response = $this->client->request('POST', $endpoint, [
6666
'auth_basic' => $this->login.':'.$this->apiKey,
67-
'body' => [
67+
'body' => json_encode([
6868
'from' => $this->from,
6969
'to' => $message->getPhone(),
7070
'text' => $message->getSubject(),
71-
],
71+
]),
7272
]);
7373

7474
try {

0 commit comments

Comments
 (0)
0