diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-11-28 10:54:47 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-06-20 10:55:26 +0200 |
commit | 77355a8a79898a03d4f45e853e3d99c9a633509b (patch) | |
tree | e84217c2c5e14704b9b9e12e0ada2f52e368f75f | |
parent | 9725d0032944ebe5a73d59781a66742c5d1ae404 (diff) | |
download | nextcloud-server-77355a8a79898a03d4f45e853e3d99c9a633509b.tar.gz nextcloud-server-77355a8a79898a03d4f45e853e3d99c9a633509b.zip |
Improve typing in ICommentsManager
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r-- | lib/public/Comments/ICommentsManager.php | 6 |
1 files 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<CommentNode>} - * @psalm-type CommentTree = list<CommentNode> - * * @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<array{comment: IComment, replies: array<empty, empty>}>} * @since 9.0.0 * * The return array looks like this |