diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php index 4bf15c23fab96..a87e901639c84 100644 --- a/lib/private/App/AppManager.php +++ b/lib/private/App/AppManager.php @@ -351,7 +351,7 @@ public function getAppsNeedingUpgrade($version) { * @param null $lang * @return array app info */ - public function getAppInfo(string $appId, bool $path = false, $lang = null) { + public function getAppInfo(string $appId, bool $path = false, $lang = null): array { if ($path) { $file = $appId; } else { @@ -361,7 +361,7 @@ public function getAppInfo(string $appId, bool $path = false, $lang = null) { try { $appPath = $this->getAppPath($appId); } catch (AppPathNotFoundException $e) { - return null; + return []; } $file = $appPath . '/appinfo/info.xml'; }