Merge "Fix supposedly nullable argument"

This commit is contained in:
jenkins-bot 2018-03-09 15:55:25 +00:00 committed by Gerrit Code Review
commit c02133ac08

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' ) {