From 82c93fb55deb0831b1446e0f3c4b4d864c9b4261 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Thu, 21 Mar 2024 17:25:57 -0700 Subject: [PATCH] fix(sdks): fix namespace of Exception Without this, PHP will try to look for an Exception class in the Appwrite\Platform\Tasks namespace, which doesn't exist. --- src/Appwrite/Platform/Tasks/SDKs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index d5168ea91c..946606c7ef 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -50,7 +50,7 @@ class SDKs extends Action $message = ($git) ? Console::confirm('Please enter your commit message:') : ''; if (!in_array($version, ['0.6.x', '0.7.x', '0.8.x', '0.9.x', '0.10.x', '0.11.x', '0.12.x', '0.13.x', '0.14.x', '0.15.x', '1.0.x', '1.1.x', '1.2.x', '1.3.x', '1.4.x', '1.5.x', 'latest'])) { - throw new Exception('Unknown version given'); + throw new \Exception('Unknown version given'); } foreach ($platforms as $key => $platform) { @@ -196,7 +196,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND $config = new REST(); break; default: - throw new Exception('Language "' . $language['key'] . '" not supported'); + throw new \Exception('Language "' . $language['key'] . '" not supported'); } Console::info("Generating {$language['name']} SDK...");