Skip to content

Commit 32d1d82

Browse files
Merge pull request #46445 from nextcloud/bug/docs/fix-phpdoc-for-find-app-in-directories
docs: correct return type for findAppInDirectories
2 parents 64701f8 + 6983310 commit 32d1d82

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/private/legacy/OC_App.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,13 @@ public static function getInstallPath(): string|null {
255255

256256

257257
/**
258-
* search for an app in all app-directories
258+
* Find the apps root for an app id.
259+
*
260+
* If multiple copies are found, the apps root the latest version is returned.
259261
*
260262
* @param string $appId
261263
* @param bool $ignoreCache ignore cache and rebuild it
262-
* @return false|string
264+
* @return false|array{path: string, url: string} the apps root shape
263265
*/
264266
public static function findAppInDirectories(string $appId, bool $ignoreCache = false) {
265267
$sanitizedAppId = self::cleanAppId($appId);

0 commit comments

Comments
 (0)