Implicitly marking parameter $... as nullable is deprecated in php8.4, the explicit nullable type must be used instead Created with autofix from Ide15839e98a6229c22584d1c1c88c690982e1d7a Break one long line in SpecialPage.php Bug: T376276 Change-Id: I807257b2ba1ab2744ab74d9572c9c3d3ac2a968e
26 lines
507 B
PHP
26 lines
507 B
PHP
<?php
|
|
|
|
use MediaWiki\Revision\RevisionRecord;
|
|
use MediaWiki\Title\Title;
|
|
|
|
/**
|
|
* A manually constructed search result, for use with FauxSearchResultSet.
|
|
*/
|
|
class FauxSearchResult extends SearchResult {
|
|
|
|
use RevisionSearchResultTrait;
|
|
|
|
public function __construct(
|
|
Title $title,
|
|
?RevisionRecord $revRecord = null,
|
|
?File $image = null,
|
|
$text = ''
|
|
) {
|
|
parent::__construct();
|
|
$this->mTitle = $title;
|
|
$this->mRevisionRecord = $revRecord;
|
|
$this->mImage = $image;
|
|
$this->mText = $text;
|
|
}
|
|
|
|
}
|