Fix supposedly nullable argument

Change-Id: I81c467ce3483096c98041412a664b3a26735118a
This commit is contained in:
Matěj Suchánek 2018-03-09 16:16:12 +01:00
parent d9f0bf1ff0
commit 5ae26bb5c6

View file

@ -501,11 +501,11 @@ class AbuseFilterHooks {
}
/**
* @param DatabaseUpdater|null $updater
* @param DatabaseUpdater $updater
* @throws MWException
* @return bool
*/
public static function onLoadExtensionSchemaUpdates( $updater = null ) {
public static function onLoadExtensionSchemaUpdates( DatabaseUpdater $updater ) {
$dir = dirname( __DIR__ );
if ( $updater->getDB()->getType() == 'mysql' || $updater->getDB()->getType() == 'sqlite' ) {