From f154fe7f8ea5e81f313192555e8c720b2207b9fb Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Mon, 7 Aug 2023 17:49:58 +0200 Subject: [PATCH] fix psalm issue Signed-off-by: Julien Veyssier --- core/Controller/TextProcessingApiController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/Controller/TextProcessingApiController.php b/core/Controller/TextProcessingApiController.php index e1d7788be2701..0035750b4b0f9 100644 --- a/core/Controller/TextProcessingApiController.php +++ b/core/Controller/TextProcessingApiController.php @@ -192,7 +192,7 @@ public function deleteTask(int $id): DataResponse { * * @param string $appId * @param string|null $identifier - * @return DataResponse|DataResponse + * @return DataResponse|DataResponse * * 200: Task list returned */ @@ -200,6 +200,7 @@ public function deleteTask(int $id): DataResponse { 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);