Skip to content

Commit 6e4e416

Browse files
committed
OAuth2 export: null-guard listOAuth2Providers response, matching report
1 parent e0741a5 commit 6e4e416

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Migration/Sources/Appwrite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ private function exportOAuth2Providers(): void
840840
$response = $this->project->listOAuth2Providers();
841841

842842
$emitted = [];
843-
foreach ($response->providers as $provider) {
843+
foreach ($response->providers ?? [] as $provider) {
844844
$key = (string) ($provider['$id'] ?? '');
845845
if ($key === '') {
846846
continue;

0 commit comments

Comments
 (0)