more testing for new mediawiki titles

This commit is contained in:
2025-07-06 22:49:16 +02:00
committed by GitHub
parent 87de424161
commit 05030e02ba

View File

@@ -41,7 +41,7 @@ class Targets {
* @param String $sourceNamespace The namespace of the current page.
* @param Config $config LinkTitles configuration.
*/
public static function singleton( \Title|MediaWiki\Title\Title $title, Config $config ) {
public static function singleton( MediaWiki\Title\Title $title, Config $config ) {
// If we received a MediaWiki\Title\Title, convert to legacy Title
if ( $title instanceof MediaWiki\Title\Title ) {
$title = Title::newFromLinkTarget( $title );