Skip to content

Commit 7ccf065

Browse files
CarlSchwanszaimen
authored andcommitted
Improve typing in ICommentsManager
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent e7a6f51 commit 7ccf065

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/public/Comments/ICommentsManager.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
*
3737
* This class manages the access to comments
3838
*
39-
* @psalm-type CommentNode = array{comment: IComment, replies: list<CommentNode>}
40-
* @psalm-type CommentTree = list<CommentNode>
41-
*
4239
* @since 9.0.0
4340
*/
4441
interface ICommentsManager {
@@ -64,11 +61,12 @@ interface ICommentsManager {
6461
public function get($id);
6562

6663
/**
67-
* returns the comment specified by the id and all it's child comments
64+
* Returns the comment specified by the id and all it's child comments
6865
*
6966
* @param string $id
7067
* @param int $limit max number of entries to return, 0 returns all
7168
* @param int $offset the start entry
69+
* @return array{comment: IComment, replies: list<array{comment: IComment, replies: array<empty, empty>}>}
7270
* @since 9.0.0
7371
*
7472
* The return array looks like this

0 commit comments

Comments
 (0)