mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 01:10:09 +00:00
Merge "Classes: Type hint $updater parameter in onLoadExtensionSchemaUpdates"
This commit is contained in:
commit
3fd4b8b1f9
|
@ -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() ) ) {
|
||||
|
|
Loading…
Reference in a new issue