From 12b6e671b01d2f7235271549194a4a4780661b89 Mon Sep 17 00:00:00 2001 From: Faizan Pasha Date: Sat, 17 Sep 2022 05:58:14 +0530 Subject: [PATCH 1/2] Fixed the bug #3859 --- app/workers/messaging.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/workers/messaging.php b/app/workers/messaging.php index 1fc5deaf44..f664c6b9fe 100644 --- a/app/workers/messaging.php +++ b/app/workers/messaging.php @@ -9,6 +9,7 @@ use Appwrite\SMS\Adapter\Msg91; use Appwrite\SMS\Adapter\Vonage; use Appwrite\DSN\DSN; use Appwrite\Resque\Worker; +use Appwrite\SMS\Adapter; use Utopia\App; use Utopia\CLI\Console; @@ -19,7 +20,7 @@ Console::success(APP_NAME . ' messaging worker v1 has started' . "\n"); class MessagingV1 extends Worker { - protected ?SMS $sms = null; + protected ?Adapter $sms = null; protected ?string $from = null; public function getName(): string From ffe525c5ccd6e9ec5e07cd5ef8fb0d0b8e7037d2 Mon Sep 17 00:00:00 2001 From: Faizan Pasha Date: Sat, 17 Sep 2022 06:02:11 +0530 Subject: [PATCH 2/2] Removed unused import --- app/workers/messaging.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/workers/messaging.php b/app/workers/messaging.php index f664c6b9fe..e8261f7030 100644 --- a/app/workers/messaging.php +++ b/app/workers/messaging.php @@ -1,6 +1,5 @@