From 6983310ec0e042d31ef7ef1e457aa15f971967d2 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Thu, 11 Jul 2024 12:05:14 +0200 Subject: [PATCH] docs: correct return type for findAppInDirectories Signed-off-by: Daniel Kesselberg --- lib/private/legacy/OC_App.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php index cb1a7b111c61e..3347e4a6ec2d2 100644 --- a/lib/private/legacy/OC_App.php +++ b/lib/private/legacy/OC_App.php @@ -255,11 +255,13 @@ public static function getInstallPath(): string|null { /** - * search for an app in all app-directories + * Find the apps root for an app id. + * + * If multiple copies are found, the apps root the latest version is returned. * * @param string $appId * @param bool $ignoreCache ignore cache and rebuild it - * @return false|string + * @return false|array{path: string, url: string} the apps root shape */ public static function findAppInDirectories(string $appId, bool $ignoreCache = false) { $sanitizedAppId = self::cleanAppId($appId);