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;