From 34a90135a732607dac6d4f6f143d3da3260b553d Mon Sep 17 00:00:00 2001 From: Marlin Forbes Date: Mon, 24 Jun 2019 12:38:47 +0200 Subject: [PATCH] Fix sailthru client exception try/catch --- src/SailthruChannel.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/SailthruChannel.php b/src/SailthruChannel.php index 2bb152f4..b831a20b 100644 --- a/src/SailthruChannel.php +++ b/src/SailthruChannel.php @@ -6,7 +6,6 @@ use Illuminate\Support\Facades\Log; use NotificationChannels\Sailthru\Events\MessageFailedToSend; use NotificationChannels\Sailthru\Events\MessageWasSent; -use Sailthru_Client_Exception; class SailthruChannel { @@ -64,7 +63,7 @@ public function send($notifiable, Notification $notification) event(new MessageWasSent($message, $response)); return $response; - } catch (Sailthru_Client_Exception $e) { + } catch (\Sailthru_Client_Exception $e) { event(new MessageFailedToSend($message, $e)); return []; @@ -74,7 +73,7 @@ public function send($notifiable, Notification $notification) /** * @param SailthruMessage $sailthruMessage * - * @throws Sailthru_Client_Exception + * @throws \Sailthru_Client_Exception * * @return array */ @@ -92,7 +91,7 @@ protected function multiSend(SailthruMessage $sailthruMessage) /** * @param SailthruMessage $sailthruMessage * - * @throws Sailthru_Client_Exception + * @throws \Sailthru_Client_Exception * * @return array */