From ad44c7a430c1dd2426b387cc891dac334ee16893 Mon Sep 17 00:00:00 2001 From: shimon Date: Thu, 15 Feb 2024 16:43:58 +0200 Subject: [PATCH] Addressed comments --- src/Appwrite/Platform/Workers/Messaging.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Workers/Messaging.php b/src/Appwrite/Platform/Workers/Messaging.php index cf11077f70..4810669cf4 100644 --- a/src/Appwrite/Platform/Workers/Messaging.php +++ b/src/Appwrite/Platform/Workers/Messaging.php @@ -3,6 +3,7 @@ namespace Appwrite\Platform\Workers; use Exception; +use libphonenumber\NumberParseException; use Utopia\App; use Utopia\CLI\Console; use Utopia\Database\Document; @@ -128,7 +129,7 @@ class Messaging extends Action ->getCountryCode(); $queueForUsage->addMetric(str_replace('{countryCode}', $countryCode, METRIC_MESSAGES_COUNTRY_CODE), 1); - } catch (\libphonenumber\NumberParseException $e) { + } catch (NumberParseException $e) { Console::error("Error parsing number: " . $e->getMessage()); }