From 854836c56a175a435b6cdb2408514540b2b017e5 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 28 Nov 2022 10:54:47 +0100 Subject: [PATCH] Improve typing in ICommentsManager Signed-off-by: Carl Schwan Signed-off-by: dartcafe --- lib/public/Comments/ICommentsManager.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php index d3f78b4f2e3..8d7ffd164b3 100644 --- a/lib/public/Comments/ICommentsManager.php +++ b/lib/public/Comments/ICommentsManager.php @@ -36,9 +36,6 @@ use OCP\PreConditionNotMetException; * * This class manages the access to comments * - * @psalm-type CommentNode = array{comment: IComment, replies: list} - * @psalm-type CommentTree = list - * * @since 9.0.0 */ interface ICommentsManager { @@ -64,11 +61,12 @@ interface ICommentsManager { public function get($id); /** - * returns the comment specified by the id and all it's child comments + * Returns the comment specified by the id and all it's child comments * * @param string $id * @param int $limit max number of entries to return, 0 returns all * @param int $offset the start entry + * @return array{comment: IComment, replies: list}>} * @since 9.0.0 * * The return array looks like this