Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 80ef5ba

Browse filesBrowse files
author
Vasilij Dusko | CREATION
committed
* LightSmsTransport.php - Unable to send the SMS: Closing direction to the user
1 parent 08b0729 commit 80ef5ba
Copy full SHA for 80ef5ba

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ protected function doSend(MessageInterface $message): SentMessage
123123

124124
$content = $response->toArray(false);
125125

126-
if (isset($content['error'])) {
126+
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[''])) {
127131
throw new TransportException('Unable to send the SMS: '.self::ERROR_CODES[$content['error']], $response);
128132
}
129133

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.