]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(apps): Fix type information of app manager 43045/head
authorJoas Schilling <coding@schilljs.com>
Tue, 23 Jan 2024 08:55:06 +0000 (09:55 +0100)
committerJoas Schilling <coding@schilljs.com>
Tue, 23 Jan 2024 08:55:06 +0000 (09:55 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/App/AppManager.php
lib/public/App/IAppManager.php

index ad5fdc5afedc9b07612ec3bb098385132bf68028..60e55a314d6cf8c8fa1a8108066eeda9d62c2b4b 100644 (file)
@@ -289,7 +289,7 @@ class AppManager implements IAppManager {
         * Check if an app is enabled for user
         *
         * @param string $appId
-        * @param \OCP\IUser $user (optional) if not defined, the currently logged in user will be used
+        * @param \OCP\IUser|null $user (optional) if not defined, the currently logged in user will be used
         * @return bool
         */
        public function isEnabledForUser($appId, $user = null) {
@@ -702,10 +702,7 @@ class AppManager implements IAppManager {
        /**
         * Returns the app information from "appinfo/info.xml".
         *
-        * @param string $appId app id
-        *
-        * @param bool $path
-        * @param null $lang
+        * @param string|null $lang
         * @return array|null app info
         */
        public function getAppInfo(string $appId, bool $path = false, $lang = null) {
@@ -817,7 +814,7 @@ class AppManager implements IAppManager {
        /**
         * @inheritdoc
         */
-       public function getDefaultEnabledApps():array {
+       public function getDefaultEnabledApps(): array {
                $this->loadShippedJson();
 
                return $this->defaultEnabled;
index 4667cf13f0f90e111c8e5d128c53c76806607adf..d15cfdbea9672f87c7ac00ccc28ea8a25d6a8ff1 100644 (file)
@@ -45,8 +45,8 @@ interface IAppManager {
        /**
         * Returns the app information from "appinfo/info.xml".
         *
-        * @param string $appId
-        * @return mixed
+        * @param string|null $lang
+        * @return array|null
         * @since 14.0.0
         */
        public function getAppInfo(string $appId, bool $path = false, $lang = null);
@@ -65,7 +65,7 @@ interface IAppManager {
         * Check if an app is enabled for user
         *
         * @param string $appId
-        * @param \OCP\IUser $user (optional) if not defined, the currently loggedin user will be used
+        * @param \OCP\IUser|null $user (optional) if not defined, the currently loggedin user will be used
         * @return bool
         * @since 8.0.0
         */