mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Fixed test for php8
This commit is contained in:
parent
429ac1098c
commit
45fff3e51f
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class V06 extends Migration
|
||||||
case Database::SYSTEM_COLLECTION_KEYS:
|
case Database::SYSTEM_COLLECTION_KEYS:
|
||||||
if ($document->getAttribute('secret', null)) {
|
if ($document->getAttribute('secret', null)) {
|
||||||
$json = \json_decode($document->getAttribute('secret'), true);
|
$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());
|
Console::log('Secret already encrypted. Skipped: ' . $document->getId());
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue