Merge "Classes: Type hint $updater parameter in onLoadExtensionSchemaUpdates"

This commit is contained in:
jenkins-bot 2019-11-26 11:37:43 +00:00 committed by Gerrit Code Review
commit 3fd4b8b1f9

View file

@ -295,11 +295,11 @@ class MathHooks {
/**
* LoadExtensionSchemaUpdates handler; set up math table on install/upgrade.
*
* @param DatabaseUpdater|null $updater
* @param DatabaseUpdater $updater
* @throws Exception
* @return bool
*/
public static function onLoadExtensionSchemaUpdates( $updater = null ) {
public static function onLoadExtensionSchemaUpdates( DatabaseUpdater $updater ) {
$type = $updater->getDB()->getType();
if ( in_array( 'latexml', MathRenderer::getValidModes() ) ) {