Skip to content

Commit

Permalink
Improve typing in ICommentsManager
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
  • Loading branch information
CarlSchwan authored and szaimen committed May 25, 2023
1 parent e7a6f51 commit 7ccf065
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/public/Comments/ICommentsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
*
* This class manages the access to comments
*
* @psalm-type CommentNode = array{comment: IComment, replies: list<CommentNode>}
* @psalm-type CommentTree = list<CommentNode>
*
* @since 9.0.0
*/
interface ICommentsManager {
Expand All @@ -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<array{comment: IComment, replies: array<empty, empty>}>}
* @since 9.0.0
*
* The return array looks like this
Expand Down

0 comments on commit 7ccf065

Please sign in to comment.