* LightSmsTransport.php

This commit is contained in:
Vasilij Dusko 2021-04-08 01:00:12 +03:00
parent fe9b188e28
commit 0b1a450194

View File

@ -124,8 +124,8 @@ final class LightSmsTransport extends AbstractTransport
$content = $response->toArray(false);
if (0 !== (int) $content[$phone]['error'] ?? -1) {
$errorCode = (int) $content['error'] ?? $content['']['error'] ?? $content[$phone]['error'] ?? -1;
if (0 !== (int) ($content['error'] ?? $content['']['error'] ?? $content[$phone]['error']) ?? -1) {
$errorCode = (int) ($content['error'] ?? $content['']['error'] ?? $content[$phone]['error']) ?? -1;
if (-1 === $errorCode) {
throw new TransportException('Unable to send the SMS.', $response);
}