wfEntryPointCheck( 'text' );
use MediaWiki\Shell\Shell;
+ use Wikimedia\Rdbms\IResultWrapper;
/**
* @defgroup MaintenanceArchive Maintenance archives
/**
* Perform a search index update with locking
* @param int $maxLockTime The maximum time to keep the search index locked.
- * @param string $callback The function that will update the function.
+ * @param callable $callback The function that will update the function.
* @param IMaintainableDatabase $dbw
- * @param array $results
+ * @param array|IResultWrapper $results
*/
public function updateSearchIndex( $maxLockTime, $callback, $dbw, $results ) {
$lockTime = time();
return false;
}
- $db->insert( 'updatelog', [ 'ul_key' => $key ], __METHOD__, 'IGNORE' );
+ $db->insert( 'updatelog', [ 'ul_key' => $key ], __METHOD__, [ 'IGNORE' ] );
return true;
}