Fix Phan error related to showPendingTakeover()

Caused by type hints added in MediaWiki core in
I3e0df790ff9db2fa630f82408a7254a359fe61ca.

Change-Id: I45d0906c11d9e66801dfedd54e6018e90ef027c4
This commit is contained in:
Bartosz Dziewoński 2024-11-14 22:38:00 +01:00
parent a0ec12fda5
commit bf22d07d2b

View file

@ -410,6 +410,7 @@ class Hooks implements
$out = $article->getContext()->getOutput(); $out = $article->getContext()->getOutput();
$titleMsg = $title->exists() ? 'editing' : 'creating'; $titleMsg = $title->exists() ? 'editing' : 'creating';
$out->setPageTitleMsg( wfMessage( $titleMsg, $title->getPrefixedText() ) ); $out->setPageTitleMsg( wfMessage( $titleMsg, $title->getPrefixedText() ) );
// @phan-suppress-next-line PhanTypeMismatchArgumentNullable Only null for invalid URL, shouldn't happen
$out->showPendingTakeover( $url, 'visualeditor-toload', $urlUtils->expand( $url ) ); $out->showPendingTakeover( $url, 'visualeditor-toload', $urlUtils->expand( $url ) );
$out->setRevisionId( $req->getInt( 'oldid', $article->getRevIdFetched() ) ); $out->setRevisionId( $req->getInt( 'oldid', $article->getRevIdFetched() ) );