8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08b0729 commit 80ef5baCopy full SHA for 80ef5ba
src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
@@ -123,7 +123,11 @@ protected function doSend(MessageInterface $message): SentMessage
123
124
$content = $response->toArray(false);
125
126
- if (isset($content['error'])) {
+ if (isset($content[''])) {
127
+ throw new TransportException('Unable to send the SMS: '.self::ERROR_CODES[$content['']['error']], $response);
128
+ }
129
+
130
+ if (isset($content['error']) || isset($content[''])) {
131
throw new TransportException('Unable to send the SMS: '.self::ERROR_CODES[$content['error']], $response);
132
}
133
0 commit comments