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 0d7488b commit 9b2e2d0Copy full SHA for 9b2e2d0
src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
@@ -129,11 +129,11 @@ protected function doSend(MessageInterface $message): SentMessage
129
}
130
131
$phone = $this->escapePhoneNumber($message->getPhone());
132
- if (32 === $content[$phone]['error']) {
+ if (32 === (int)$content[$phone]['error']) {
133
throw new TransportException('Unable to send the SMS: '.$this->getErrorMsg((int)$content[$phone]['error']), $response);
134
135
136
- if (0 == $content[$phone]['error']) {
+ if (0 == (int)$content[$phone]['error']) {
137
$sentMessage = new SentMessage($message, (string) $this);
138
$sentMessage->setMessageId($content[$phone]['id_sms']);
139
0 commit comments