aboutsummaryrefslogtreecommitdiffstats
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-07 18:28:58 +0200
commitf154fe7f8ea5e81f313192555e8c720b2207b9fb (patch)
treec947a00f13af7b9b1c15304a8c6fe4b6883fc984 /core/Controller
parente9e7db997a689fa1a1794cc9f294b3b224c9d06f (diff)
downloadnextcloud-server-f154fe7f8ea5e81f313192555e8c720b2207b9fb.tar.gz
nextcloud-server-f154fe7f8ea5e81f313192555e8c720b2207b9fb.zip
fix psalm issue
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);