[Notifier] LightSMS duplicated $errorCode variable fix

This commit is contained in:
Vasilij Dusko 2021-04-08 06:40:07 +03:00 committed by Nyholm
parent 0b1a450194
commit 867769ede4
No known key found for this signature in database
GPG Key ID: D6332DE2B6F8FA38

View File

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