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 bea5256

Browse filesBrowse files
committed
* type cast. On success lightsms return error code like string. On error return integer.
1 parent 9b2e2d0 commit bea5256
Copy full SHA for bea5256

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-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
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ protected function doSend(MessageInterface $message): SentMessage
133133
throw new TransportException('Unable to send the SMS: '.$this->getErrorMsg((int)$content[$phone]['error']), $response);
134134
}
135135

136-
if (0 == (int)$content[$phone]['error']) {
136+
if (0 === (int)$content[$phone]['error']) {
137137
$sentMessage = new SentMessage($message, (string) $this);
138138
$sentMessage->setMessageId($content[$phone]['id_sms']);
139139

0 commit comments

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