From 45fff3e51fc9b3ee587cbc85b24e0604c08d3e2c Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sat, 6 Feb 2021 10:27:07 +0200 Subject: [PATCH] Fixed test for php8 --- src/Appwrite/Migration/Version/V06.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Migration/Version/V06.php b/src/Appwrite/Migration/Version/V06.php index 60bb8d3471..e4fbc77718 100644 --- a/src/Appwrite/Migration/Version/V06.php +++ b/src/Appwrite/Migration/Version/V06.php @@ -35,7 +35,7 @@ class V06 extends Migration case Database::SYSTEM_COLLECTION_KEYS: if ($document->getAttribute('secret', null)) { $json = \json_decode($document->getAttribute('secret'), true); - if ($json['data'] || $json['method'] || $json['iv'] || $json['tag'] || $json['version']) + if (is_array($json)) { Console::log('Secret already encrypted. Skipped: ' . $document->getId()); break;