summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorJulien Veyssier <julien-nc@posteo.net>2023-08-07 17:49:58 +0200
committerJulien Veyssier <julien-nc@posteo.net>2023-08-09 14:58:02 +0200
commit993a559ec6adfc4ee47b009f4fb8aaa7b6f4ab22 (patch)
tree29573037c519bdb54ad3d9ced9b1037e8e4190d9 /core/Controller
parent0564bd23f2c270c389455082ef53be8d7f8a6219 (diff)
downloadnextcloud-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.php3
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);