mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 14:06:52 +00:00
Fix Phan error related to showPendingTakeover()
Caused by type hints added in MediaWiki core in I3e0df790ff9db2fa630f82408a7254a359fe61ca. Change-Id: I45d0906c11d9e66801dfedd54e6018e90ef027c4
This commit is contained in:
parent
a0ec12fda5
commit
bf22d07d2b
|
@ -410,6 +410,7 @@ class Hooks implements
|
|||
$out = $article->getContext()->getOutput();
|
||||
$titleMsg = $title->exists() ? 'editing' : 'creating';
|
||||
$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->setRevisionId( $req->getInt( 'oldid', $article->getRevIdFetched() ) );
|
||||
|
|
Loading…
Reference in a new issue