Skip to content

Commit

Permalink
Merge pull request #46445 from nextcloud/bug/docs/fix-phpdoc-for-find…
Browse files Browse the repository at this point in the history
…-app-in-directories

docs: correct return type for findAppInDirectories
  • Loading branch information
AndyScherzinger authored Jul 11, 2024
2 parents 64701f8 + 6983310 commit 32d1d82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/private/legacy/OC_App.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 32d1d82

Please sign in to comment.