8000 * type cast. On success lightsms return error code like string. On er… · symfony/symfony@bea5256 · GitHub
[go: up one dir, main page]

Skip to content

Commit bea5256

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines 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