foreach ( $updates as $funcList ) {
list( $func, $args, $origParams ) = $funcList;
+ // @phan-suppress-next-line PhanUndeclaredInvokeInCallable
$func( ...$args );
flush();
$this->updatesSkipped[] = $origParams;
if ( $val && $this->canUseNewUpdatelog() ) {
$values['ul_value'] = $val;
}
- $this->db->insert( 'updatelog', $values, __METHOD__, 'IGNORE' );
+ $this->db->insert( 'updatelog', $values, __METHOD__, [ 'IGNORE' ] );
$this->db->setFlag( DBO_DDLMODE );
}
$cl = $this->maintenance->runChild(
RebuildLocalisationCache::class, 'rebuildLocalisationCache.php'
);
+ '@phan-var RebuildLocalisationCache $cl';
$this->output( "Rebuilding localisation cache...\n" );
$cl->setForce();
$cl->execute();
$task = $this->maintenance->runChild(
MigrateImageCommentTemp::class, 'migrateImageCommentTemp.php'
);
+ // @phan-suppress-next-line PhanUndeclaredMethod
$task->setForce();
$ok = $task->execute();
$this->output( $ok ? "done.\n" : "errors were encountered.\n" );
if ( $this->db->fieldExists( 'archive', 'ar_text', __METHOD__ ) ) {
$this->output( "Migrating archive ar_text to modern storage.\n" );
$task = $this->maintenance->runChild( MigrateArchiveText::class, 'migrateArchiveText.php' );
+ // @phan-suppress-next-line PhanUndeclaredMethod
$task->setForce();
if ( $task->execute() ) {
$this->applyPatch( 'patch-drop-ar_text.sql', false,