Skip to content

Commit

Permalink
fix psalm issue
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Aug 7, 2023
1 parent e9e7db9 commit 2609d8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/Controller/TextProcessingApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2609d8f

Please sign in to comment.