aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/lib/Search/Result.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/comments/lib/Search/Result.php')
-rw-r--r--apps/comments/lib/Search/Result.php25
1 files changed, 11 insertions, 14 deletions
diff --git a/apps/comments/lib/Search/Result.php b/apps/comments/lib/Search/Result.php
index 06016d2b46d..6e1e3790818 100644
--- a/apps/comments/lib/Search/Result.php
+++ b/apps/comments/lib/Search/Result.php
@@ -39,41 +39,38 @@ class Result extends BaseResult {
/**
* @deprecated 20.0.0
*/
- public $comment;
+ public string $comment;
/**
* @deprecated 20.0.0
*/
- public $authorId;
+ public string $authorId;
/**
* @deprecated 20.0.0
*/
- public $authorName;
+ public string $path;
/**
* @deprecated 20.0.0
*/
- public $path;
- /**
- * @deprecated 20.0.0
- */
- public $fileName;
+ public string $fileName;
/**
* @throws NotFoundException
* @deprecated 20.0.0
*/
- public function __construct(string $search,
- IComment $comment,
- string $authorName,
- string $path) {
+ public function __construct(
+ string $search,
+ IComment $comment,
+ public string $authorName,
+ string $path,
+ ) {
parent::__construct(
$comment->getId(),
$comment->getMessage()
- /* @todo , [link to file] */
+ /* @todo , [link to file] */
);
$this->comment = $this->getRelevantMessagePart($comment->getMessage(), $search);
$this->authorId = $comment->getActorId();
- $this->authorName = $authorName;
$this->fileName = basename($path);
$this->path = $this->getVisiblePath($path);
}