|
@@ -39,19 +39,23 @@ class Result extends BaseResult {
|
|
|
/**
|
|
|
* @deprecated 20.0.0
|
|
|
*/
|
|
|
- public string $comment;
|
|
|
+ public $comment;
|
|
|
/**
|
|
|
* @deprecated 20.0.0
|
|
|
*/
|
|
|
- public string $authorId;
|
|
|
+ public $authorId;
|
|
|
/**
|
|
|
* @deprecated 20.0.0
|
|
|
*/
|
|
|
- public string $path;
|
|
|
+ public string $authorName;
|
|
|
/**
|
|
|
* @deprecated 20.0.0
|
|
|
*/
|
|
|
- public string $fileName;
|
|
|
+ public $path;
|
|
|
+ /**
|
|
|
+ * @deprecated 20.0.0
|
|
|
+ */
|
|
|
+ public $fileName;
|
|
|
|
|
|
/**
|
|
|
* @throws NotFoundException
|
|
@@ -60,7 +64,7 @@ class Result extends BaseResult {
|
|
|
public function __construct(
|
|
|
string $search,
|
|
|
IComment $comment,
|
|
|
- public string $authorName,
|
|
|
+ string $authorName,
|
|
|
string $path,
|
|
|
) {
|
|
|
parent::__construct(
|
|
@@ -71,6 +75,7 @@ class Result extends BaseResult {
|
|
|
|
|
|
$this->comment = $this->getRelevantMessagePart($comment->getMessage(), $search);
|
|
|
$this->authorId = $comment->getActorId();
|
|
|
+ $this->authorName = $authorName;
|
|
|
$this->fileName = basename($path);
|
|
|
$this->path = $this->getVisiblePath($path);
|
|
|
}
|