From 6f621fbc88d30d65a5c32a8a8e265c780adef178 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Wed, 17 Jun 2026 10:09:42 +0530 Subject: [PATCH] Update PHP SDK to 26 --- composer.json | 2 +- composer.lock | 16 ++++++++-------- src/Migration/Destinations/Appwrite.php | 10 +++++----- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/composer.json b/composer.json index 5dc3f557fc..693c84de78 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "ext-curl": "*", "ext-openssl": "*", - "appwrite/appwrite": "24.*", + "appwrite/appwrite": "^26.0", "utopia-php/database": "5.*", "utopia-php/storage": "2.*", "utopia-php/dsn": "0.2.*", diff --git a/composer.lock b/composer.lock index d4a75bb02a..812d90f614 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d500f176f703c97758a1fc200f0ace55", + "content-hash": "1eab1f63068b4695ce48da1faf488c98", "packages": [ { "name": "appwrite/appwrite", - "version": "24.1.0", + "version": "26.0.0", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-for-php.git", - "reference": "dcb3550a3332de1c1665a015a09e9c73ff515e4f" + "reference": "bc26d0f0cfa4699de12d6af4df70ac0729ab7918" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/dcb3550a3332de1c1665a015a09e9c73ff515e4f", - "reference": "dcb3550a3332de1c1665a015a09e9c73ff515e4f", + "url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/bc26d0f0cfa4699de12d6af4df70ac0729ab7918", + "reference": "bc26d0f0cfa4699de12d6af4df70ac0729ab7918", "shasum": "" }, "require": { @@ -27,7 +27,7 @@ }, "require-dev": { "mockery/mockery": "1.6.12", - "phpunit/phpunit": "^10" + "phpunit/phpunit": "^12" }, "type": "library", "autoload": { @@ -43,10 +43,10 @@ "support": { "email": "team@appwrite.io", "issues": "https://github.com/appwrite/sdk-for-php/issues", - "source": "https://github.com/appwrite/sdk-for-php/tree/24.1.0", + "source": "https://github.com/appwrite/sdk-for-php/tree/26.0.0", "url": "https://appwrite.io/support" }, - "time": "2026-05-20T09:37:03+00:00" + "time": "2026-06-17T04:32:07+00:00" }, { "name": "brick/math", diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index 64e7e0b10e..8b47c06b7b 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -3379,11 +3379,11 @@ class Appwrite extends Destination case 'redirect': $statusCode = match ($resource->getRedirectStatusCode()) { - 301 => StatusCode::MOVEDPERMANENTLY301(), - 302 => StatusCode::FOUND302(), - 307 => StatusCode::TEMPORARYREDIRECT307(), - 308 => StatusCode::PERMANENTREDIRECT308(), - default => StatusCode::MOVEDPERMANENTLY301(), + 301 => StatusCode::MOVEDPERMANENTLY(), + 302 => StatusCode::FOUND(), + 307 => StatusCode::TEMPORARYREDIRECT(), + 308 => StatusCode::PERMANENTREDIRECT(), + default => StatusCode::MOVEDPERMANENTLY(), }; $resourceType = $deploymentResourceType === 'site'