From 867769ede4da19e3279ee86a75e3d231b576df31 Mon Sep 17 00:00:00 2001 From: Vasilij Dusko Date: Thu, 8 Apr 2021 06:40:07 +0300 Subject: [PATCH] [Notifier] LightSMS duplicated $errorCode variable fix --- .../Component/Notifier/Bridge/LightSms/LightSmsTransport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php b/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php index fe4e1784b4f02..e91ff3142644e 100644 --- a/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php @@ -124,8 +124,8 @@ protected function doSend(MessageInterface $message): SentMessage $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) { throw new TransportException('Unable to send the SMS.', $response); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy