X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Forphans.php;h=e36c5b67dd544ae398c38510cba762a4c4c653ea;hb=2f28050b6b866f684da92c1832c0a3938b59ef0b;hp=e4f3e913542eb63634b275f60299bb367946c8fd;hpb=99454a0376c18d5841650deb0e6d5d13786704dc;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/orphans.php b/maintenance/orphans.php index e4f3e91354..e36c5b67dd 100644 --- a/maintenance/orphans.php +++ b/maintenance/orphans.php @@ -30,6 +30,8 @@ require_once __DIR__ . '/Maintenance.php'; +use Wikimedia\Rdbms\IMaintainableDatabase; + /** * Maintenance script that looks for 'orphan' revisions hooked to pages which * don't exist and 'childless' pages with no revisions. @@ -56,8 +58,8 @@ class Orphans extends Maintenance { /** * Lock the appropriate tables for the script - * @param Database $db - * @param string $extraTable The name of any extra tables to lock (eg: text) + * @param IMaintainableDatabase $db + * @param string[] $extraTable The name of any extra tables to lock (eg: text) */ private function lockTables( $db, $extraTable = [] ) { $tbls = [ 'page', 'revision', 'redirect' ];