more changes

This commit is contained in:
2025-07-09 23:22:25 +02:00
parent 1878833ff0
commit d30813633a
6 changed files with 22 additions and 16 deletions

View File

@@ -33,7 +33,7 @@ use MediaWiki\Title\Title;
class Target {
/**
* A Title object for the target page currently being examined.
* @var \MediaWiki\Title\Title $title
* @var Title $title
*/
private $title;
@@ -77,7 +77,7 @@ class Target {
* @param String &$title Title of the target page
*/
public function __construct( $namespace, $title, Config &$config ) {
$this->title = \MediaWiki\Title\Title::makeTitleSafe( $namespace, $title );
$this->title = Title::makeTitleSafe( $namespace, $title );
$this->titleValue = $this->title->getTitleValue();
$this->config = $config;
@@ -253,7 +253,7 @@ class Target {
/**
* Obtain a page's content.
* Workaround for MediaWiki 1.36+ which deprecated Wikipage::factory.
* @param \MediaWiki\Title\Title $title
* @param Title $title
* @return Content content object of the page
*/
private static function getPageContents( $title ) {