diff --git a/CHANGELOG.md b/CHANGELOG.md index ad3da51..bde6f64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 30.2.1 + +* Fixed: requires `utopia-php/client` `^0.6` and imports `Utopia\Client\Client`, so the SDK installs and runs next to client 0.6, which dropped the `Utopia\Client` alias + ## 30.2.0 * Added: optional `interval` parameter on `functions.create` and `functions.update` to run a function every N minutes diff --git a/composer.json b/composer.json index 224788d..21faff5 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "php": ">=8.5", "ext-curl": "*", "ext-json": "*", - "utopia-php/client": "^0.4.1", + "utopia-php/client": "^0.6", "adhocore/jwt": "^1.1" }, "require-dev": { diff --git a/src/Appwrite/Client.php b/src/Appwrite/Client.php index 8ced412..98d59f3 100644 --- a/src/Appwrite/Client.php +++ b/src/Appwrite/Client.php @@ -6,8 +6,8 @@ use Ahc\Jwt\JWT; use Psr\Http\Client\ClientExceptionInterface; -use Utopia\Client as HttpClient; use Utopia\Client\Adapter\Curl\Client as CurlAdapter; +use Utopia\Client\Client as HttpClient; use Utopia\Psr7\Request\Factory as RequestFactory; use Utopia\Psr7\Request\Multipart\Part; @@ -43,11 +43,11 @@ class Client * */ protected array $headers = [ - 'user-agent' => 'AppwritePHPSDK/30.2.0 ()', + 'user-agent' => 'AppwritePHPSDK/30.2.1 ()', 'x-sdk-name' => 'PHP', 'x-sdk-platform' => 'server', 'x-sdk-language' => 'php', - 'x-sdk-version' => '30.2.0', + 'x-sdk-version' => '30.2.1', ]; /** diff --git a/tests/Appwrite/ClientTest.php b/tests/Appwrite/ClientTest.php index 69896e7..4667847 100644 --- a/tests/Appwrite/ClientTest.php +++ b/tests/Appwrite/ClientTest.php @@ -7,7 +7,7 @@ use PHPUnit\Framework\TestCase; use ReflectionMethod; use ReflectionProperty; -use Utopia\Client as HttpClient; +use Utopia\Client\Client as HttpClient; final class ClientTest extends TestCase {