Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(AppManager): Argument must be of type array|object
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf committed Aug 20, 2025
commit b36e4e3824f922fbcad692e10b6c39b4ea5fb429
10 changes: 6 additions & 4 deletions lib/private/App/AppManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -992,10 +992,12 @@ public function setDefaultApps(array $defaultApps): void {

public function isBackendRequired(string $backend): bool {
foreach ($this->appInfos as $appInfo) {
foreach ($appInfo['dependencies']['backend'] as $appBackend) {
if ($backend === $appBackend) {
return true;
}
if (
isset($appInfo['dependencies']['backend'])
&& is_array($appInfo['dependencies']['backend'])
&& in_array($backend, $appInfo['dependencies']['backend'], true)
) {
return true;
}
}

Expand Down
Loading