* type cast. On success lightsms return error code like string. On error return integer.
This commit is contained in:
parent
9b2e2d0b4a
commit
bea5256cc2
@ -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']);
|
||||
|
||||
|
Reference in New Issue
Block a user