]> source.dussan.org Git - nextcloud-server.git/commitdiff
LLM OCP API: Fix psalm error
authorMarcel Klehr <mklehr@gmx.net>
Thu, 6 Jul 2023 09:31:04 +0000 (11:31 +0200)
committerMarcel Klehr <mklehr@gmx.net>
Wed, 9 Aug 2023 08:01:33 +0000 (10:01 +0200)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 62b19e0675681d251c210f4231823e3304bd6cd3)

lib/public/LanguageModel/AbstractLanguageModelTask.php

index afa23dd36c834106e9cc58247758537b224eb8ac..90e9c42de0957e07975579de77d3f8e0889e4e85 100644 (file)
@@ -77,7 +77,7 @@ abstract class AbstractLanguageModelTask implements ILanguageModelTask {
        }
 
        /**
-        * @return int
+        * @return ILanguageModelTask::STATUS_*
         * @since 28.0.0
         */
        final public function getStatus(): int {
@@ -85,7 +85,7 @@ abstract class AbstractLanguageModelTask implements ILanguageModelTask {
        }
 
        /**
-        * @param int $status
+        * @psalm-param ILanguageModelTask::STATUS_* $status
         * @since 28.0.0
         */
        final public function setStatus(int $status): void {