X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Forphans.php;h=e36c5b67dd544ae398c38510cba762a4c4c653ea;hb=e143e3ebe4f2a2b796179d33b2b366c852f74249;hp=7b8f2cd96a1068b844afdec68d888c5a0a7f2ca7;hpb=8eac2feedb7ee093d2c48504e1eb2b8a9dbc8452;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/orphans.php b/maintenance/orphans.php index 7b8f2cd96a..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 DatabaseBase $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' ];