mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
Set onDiffViewHeader argument defaults = null
As suggested by Bartosz in https://gerrit.wikimedia.org/r/#/c/361938/ Just set a default value but keep the type hint. This should avoid the logspam while retaining type safety. Bug: T169132 Change-Id: I1221357746f5d4ba1430bcf0bfe773202484eebc
This commit is contained in:
parent
27467c32d4
commit
c14b1c46a9
|
@ -79,8 +79,8 @@ class VisualEditorHooks {
|
|||
|
||||
public static function onDiffViewHeader(
|
||||
DifferenceEngine $diff,
|
||||
/* Revision */ $oldRev,
|
||||
/* Revision */ $newRev
|
||||
Revision $oldRev = null,
|
||||
Revision $newRev = null
|
||||
) {
|
||||
$config = ConfigFactory::getDefaultInstance()->makeConfig( 'visualeditor' );
|
||||
$output = RequestContext::getMain()->getOutput();
|
||||
|
|
Loading…
Reference in a new issue