Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve typing in ICommentsManager
Signed-off-by: Carl Schwan <[email protected]>
  • Loading branch information
CarlSchwan authored and come-nc committed Jun 20, 2023
commit 77355a8a79898a03d4f45e853e3d99c9a633509b
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