From dc441c39739248956dfc2f0ac1d5596ce3e9feb9 Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Tue, 24 Feb 2026 22:44:57 +0000 Subject: [PATCH] fix: enable strict mode for Appwrite migration resource WhiteList --- app/controllers/api/migrations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/migrations.php b/app/controllers/api/migrations.php index 5a864ab928..05462ae1f5 100644 --- a/app/controllers/api/migrations.php +++ b/app/controllers/api/migrations.php @@ -62,7 +62,7 @@ Http::post('/v1/migrations/appwrite') ) ] )) - ->param('resources', [], new ArrayList(new WhiteList(Appwrite::getSupportedResources())), 'List of resources to migrate') + ->param('resources', [], new ArrayList(new WhiteList(Appwrite::getSupportedResources(), true)), 'List of resources to migrate') ->param('endpoint', '', new URL(), 'Source Appwrite endpoint') ->param('projectId', '', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Source Project ID', false, ['dbForProject']) ->param('apiKey', '', new Text(512), 'Source API Key') @@ -708,7 +708,7 @@ Http::get('/v1/migrations/appwrite/report') ) ] )) - ->param('resources', [], new ArrayList(new WhiteList(Appwrite::getSupportedResources())), 'List of resources to migrate') + ->param('resources', [], new ArrayList(new WhiteList(Appwrite::getSupportedResources(), true)), 'List of resources to migrate') ->param('endpoint', '', new URL(), "Source's Appwrite Endpoint") ->param('projectID', '', new Text(512), "Source's Project ID") ->param('key', '', new Text(512), "Source's API Key")