Skip to content

Commit 0bbd281

Browse files
authored
Guard against empty list of apps (#331)
1 parent fc035f2 commit 0bbd281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function getAll()
3939

4040
return \array_map(function ($app) {
4141
return new AppEntity($app);
42-
}, $apps->apps);
42+
}, $apps->apps ?? []);
4343
}
4444

4545
/**

0 commit comments

Comments
 (0)