From 2609d8f7c5373c20247881de281dc50ec61f41a1 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/core/Controller/TextProcessingApiController.php b/core/Controller/TextProcessingApiController.php index e1d7788be2701..d5909846db90e 100644 --- a/core/Controller/TextProcessingApiController.php +++ b/core/Controller/TextProcessingApiController.php @@ -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 array{CoreTextProcessingTask} $json */ $json = array_map(static function (Task $task) { return $task->jsonSerialize(); }, $tasks);