]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix mismatching docblock return types 19820/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 6 Mar 2020 15:33:01 +0000 (16:33 +0100)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 6 Mar 2020 15:38:25 +0000 (16:38 +0100)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
apps/files_versions/lib/Versions/IVersionBackend.php
core/Migrations/Version16000Date20190212081545.php
lib/private/AllConfig.php
lib/private/Authentication/TwoFactorAuth/EnforcementState.php
lib/private/Group/Database.php
lib/private/User/Session.php

index 2cd8cb30cb5f57d05de10e9806c0baeddc7eb373..d526df6996776e94cf4f7c83ebf68fdfeaa3e7fc 100644 (file)
@@ -91,7 +91,9 @@ interface IVersionBackend {
         * @param IUser $user
         * @param FileInfo $sourceFile
         * @param int|string $revision
-        * @return ISimpleFile
+        *
+        * @return File
+        *
         * @since 15.0.0
         */
        public function getVersionFile(IUser $user, FileInfo $sourceFile, $revision): File;
index e33b475896fe338eec86bf04854fc79739879942..feb271b1f01e7d42a8d024c25dafbf8b3df071cb 100644 (file)
@@ -38,7 +38,8 @@ class Version16000Date20190212081545 extends SimpleMigrationStep {
         * @param IOutput $output
         * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
         * @param array $options
-        * @return null|ISchemaWrapper
+        *
+        * @return ISchemaWrapper
         */
        public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ISchemaWrapper {
                /** @var ISchemaWrapper $schema */
index 9ccb443aabb83d69ab0e8e5d54eec2c4b407055a..2eca9d55b2859f6575d9385fa2559d55a97809a7 100644 (file)
@@ -129,7 +129,9 @@ class AllConfig implements \OCP\IConfig {
         *
         * @param string $key the key of the value, under which it was saved
         * @param mixed $default the default value to be returned if the value isn't set
-        * @return mixed the value or $default
+        *
+        * @return bool
+        *
         * @since 16.0.0
         */
        public function getSystemValueBool(string $key, bool $default = false): bool {
@@ -141,7 +143,9 @@ class AllConfig implements \OCP\IConfig {
         *
         * @param string $key the key of the value, under which it was saved
         * @param mixed $default the default value to be returned if the value isn't set
-        * @return mixed the value or $default
+        *
+        * @return int
+        *
         * @since 16.0.0
         */
        public function getSystemValueInt(string $key, int $default = 0): int {
@@ -153,7 +157,9 @@ class AllConfig implements \OCP\IConfig {
         *
         * @param string $key the key of the value, under which it was saved
         * @param mixed $default the default value to be returned if the value isn't set
-        * @return mixed the value or $default
+        *
+        * @return string
+        *
         * @since 16.0.0
         */
        public function getSystemValueString(string $key, string $default = ''): string {
index 46bcc596d925ce4bcbb05157974a88066cfb5bbb..abd0ec7f2e7345510945b34f33eb3903e9de6e34 100644 (file)
@@ -55,7 +55,7 @@ class EnforcementState implements JsonSerializable {
        }
 
        /**
-        * @return string[]
+        * @return bool
         */
        public function isEnforced(): bool {
                return $this->enforced;
index 450fffe573e58efb15a5b799d0bf6c83bb61bc7a..27dad809f89bec7cf47cb636fcd54ac364b19120 100644 (file)
@@ -400,7 +400,8 @@ class Database extends ABackend
         * get the number of disabled users in a group
         *
         * @param string $search
-        * @return int|bool
+        *
+        * @return int
         */
        public function countDisabledInGroup(string $gid): int {
                $this->fixDI();
index 4aa9074b4a4cdf1e1c504186fbd90c17c706a3a5..602f779c901204026df4763b47e1ff4f704bdda3 100644 (file)
@@ -317,7 +317,7 @@ class Session implements IUserSession, Emitter {
        }
 
        /**
-        * @return mixed
+        * @return null|string
         */
        public function getImpersonatingUserID(): ?string {