diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-07-07 13:36:27 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-08-09 10:02:25 +0200 |
commit | 1ad0a2960e7d568fb40dc36430444f2ef70eaace (patch) | |
tree | 56851b44bcc71bec5259efa2aa4fadbe831f2a4b | |
parent | a39e3c90e92ec9dca72129d85757af013ab8471d (diff) | |
download | nextcloud-server-1ad0a2960e7d568fb40dc36430444f2ef70eaace.tar.gz nextcloud-server-1ad0a2960e7d568fb40dc36430444f2ef70eaace.zip |
LanguageModelApiController: Use jsonSerialize method to help psalm
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 49ea56b306d0675958ece8bf043dcc06cee74ef9)
-rw-r--r-- | core/Controller/LanguageModelApiController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/LanguageModelApiController.php b/core/Controller/LanguageModelApiController.php index 5bb7b31c3c7..dcc8e59e2cc 100644 --- a/core/Controller/LanguageModelApiController.php +++ b/core/Controller/LanguageModelApiController.php @@ -115,7 +115,7 @@ class LanguageModelApiController extends \OCP\AppFramework\OCSController { } return new DataResponse([ - 'task' => $task, + 'task' => $task->jsonSerialize(), ]); } catch (NotFoundException $e) { return new DataResponse(['message' => $this->l->t('Task not found')], Http::STATUS_NOT_FOUND); |