diff options
author | Julien Veyssier <julien-nc@posteo.net> | 2023-08-07 17:49:58 +0200 |
---|---|---|
committer | Julien Veyssier <julien-nc@posteo.net> | 2023-08-09 14:58:02 +0200 |
commit | 993a559ec6adfc4ee47b009f4fb8aaa7b6f4ab22 (patch) | |
tree | 29573037c519bdb54ad3d9ced9b1037e8e4190d9 /core/Controller | |
parent | 0564bd23f2c270c389455082ef53be8d7f8a6219 (diff) | |
download | nextcloud-server-993a559ec6adfc4ee47b009f4fb8aaa7b6f4ab22.tar.gz nextcloud-server-993a559ec6adfc4ee47b009f4fb8aaa7b6f4ab22.zip |
fix psalm issue
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
(cherry picked from commit f154fe7f8ea5e81f313192555e8c720b2207b9fb)
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/TextProcessingApiController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Controller/TextProcessingApiController.php b/core/Controller/TextProcessingApiController.php index e1d7788be27..0035750b4b0 100644 --- a/core/Controller/TextProcessingApiController.php +++ b/core/Controller/TextProcessingApiController.php @@ -192,7 +192,7 @@ class TextProcessingApiController extends \OCP\AppFramework\OCSController { * * @param string $appId * @param string|null $identifier - * @return DataResponse<Http::STATUS_OK, array{tasks: array{CoreTextProcessingTask}}, array{}>|DataResponse<Http::STATUS_INTERNAL_SERVER_ERROR, array{message: string}, array{}> + * @return DataResponse<Http::STATUS_OK, array{tasks: CoreTextProcessingTask[]}, array{}>|DataResponse<Http::STATUS_INTERNAL_SERVER_ERROR, array{message: string}, array{}> * * 200: Task list returned */ @@ -200,6 +200,7 @@ class TextProcessingApiController extends \OCP\AppFramework\OCSController { public function listTasksByApp(string $appId, ?string $identifier = null): DataResponse { try { $tasks = $this->textProcessingManager->getUserTasksByApp($this->userId, $appId, $identifier); + /** @var CoreTextProcessingTask[] $json */ $json = array_map(static function (Task $task) { return $task->jsonSerialize(); }, $tasks); |