X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22lang_raccourcis%22%2C%22module=%24nom_module%22%29%20.%20%22?a=blobdiff_plain;f=maintenance%2FMaintenance.php;h=6beda4e3e308553423419ae670191e32c859fe78;hb=1bfdb65439f65c68e63d931d4d33e10809101c92;hp=44ce9a5d186a2ec2cf09311e14f9021577b44c79;hpb=98279e5b79e6db0225f2b03f65b8aefe2797d1f8;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 44ce9a5d18..6beda4e3e3 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -26,6 +26,7 @@ require_once __DIR__ . '/../includes/PHPVersionCheck.php'; wfEntryPointCheck( 'text' ); use MediaWiki\Shell\Shell; +use Wikimedia\Rdbms\IResultWrapper; /** * @defgroup MaintenanceArchive Maintenance archives @@ -1478,9 +1479,9 @@ abstract class Maintenance { /** * 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(); @@ -1724,7 +1725,7 @@ abstract class LoggedUpdateMaintenance extends Maintenance { return false; } - $db->insert( 'updatelog', [ 'ul_key' => $key ], __METHOD__, 'IGNORE' ); + $db->insert( 'updatelog', [ 'ul_key' => $key ], __METHOD__, [ 'IGNORE' ] ); return true; }