* type cast. On success lightsms return error code like string. On error return integer.

This commit is contained in:
Vasilij Dusko 2021-04-04 10:53:00 +03:00
parent 9b2e2d0b4a
commit bea5256cc2

View File

@ -133,7 +133,7 @@ final class LightSmsTransport extends AbstractTransport
throw new TransportException('Unable to send the SMS: '.$this->getErrorMsg((int)$content[$phone]['error']), $response);
}
if (0 == (int)$content[$phone]['error']) {
if (0 === (int)$content[$phone]['error']) {
$sentMessage = new SentMessage($message, (string) $this);
$sentMessage->setMessageId($content[$phone]['id_sms']);