transactions->run(function () use ($jobId, $taskId, $commentId, $userId, $body): void { $comment = $this->finder->find($jobId, $taskId, $commentId); $comment->edit($userId, $body, $this->clock->now()); $this->comments->save($comment); }); } }