diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-10-28 16:10:03 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-28 23:51:53 +0300 |
commit | 3caa7ca676c6022ce36bd09bfb2cfafe079da146 (patch) | |
tree | d20b9dd2a3657799e2fb3f5e77a1ca0efed1af16 /lib/Manager.php | |
parent | f65863f70aa9c73ecb06a78a3b4134b3cfbd2617 (diff) |
Add a stub for the comments manager to clarify it's defined methods
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Manager.php')
-rw-r--r-- | lib/Manager.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Manager.php b/lib/Manager.php index 5a4b81eb7..1314e6642 100644 --- a/lib/Manager.php +++ b/lib/Manager.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace OCA\Talk; -use OCA\Talk\Chat\Changelog; use OCA\Talk\Chat\CommentsManager; use OCA\Talk\Events\CreateRoomTokenEvent; use OCA\Talk\Events\RoomEvent; @@ -31,6 +30,7 @@ use OCA\Talk\Exceptions\ParticipantNotFoundException; use OCA\Talk\Exceptions\RoomNotFoundException; use OCP\AppFramework\Utility\ITimeFactory; use OCP\Comments\IComment; +use OCP\Comments\ICommentsManager; use OCP\Comments\NotFoundException; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\EventDispatcher\IEventDispatcher; @@ -54,7 +54,7 @@ class Manager { private $secureRandom; /** @var IUserManager */ private $userManager; - /** @var CommentsManager */ + /** @var ICommentsManager */ private $commentsManager; /** @var TalkSession */ private $talkSession; @@ -192,6 +192,7 @@ class Manager { } public function createCommentObject(array $row): ?IComment { + /** @psalm-suppress UndefinedInterfaceMethod */ return $this->commentsManager->getCommentFromData([ 'id' => $row['comment_id'], 'parent_id' => $row['comment_parent_id'], |