From f83bc9a5b1508291436036e653da4acfcf1b323b Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 1 Oct 2024 10:21:11 +0300 Subject: [PATCH] $files length --- src/Migration/Sources/Appwrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Migration/Sources/Appwrite.php b/src/Migration/Sources/Appwrite.php index 47aa1af..44392d5 100644 --- a/src/Migration/Sources/Appwrite.php +++ b/src/Migration/Sources/Appwrite.php @@ -254,7 +254,7 @@ public function report(array $resources = []): array )['files']; $files = array_merge($files, $currentFiles); - $lastFile = $files[count($files) - 1]['$id']; + $lastFile = $files[count($files) - 1]['$id'] ?? null; if (count($currentFiles) < 20) { break;