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);