X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fcache%2FLinkBatch.php;h=38cb6be566360557f8a721c0e985c0f268d89883;hp=77ab2d59d3618609b6a0920bce86502cb8409d9a;hb=89539f2aa1b158fdcc703ad053e2580cb97a6385;hpb=9e076d6b1a0af6411c005b24d5adb69345905735 diff --git a/includes/cache/LinkBatch.php b/includes/cache/LinkBatch.php index 77ab2d59d3..38cb6be566 100644 --- a/includes/cache/LinkBatch.php +++ b/includes/cache/LinkBatch.php @@ -23,6 +23,7 @@ use MediaWiki\Linker\LinkTarget; use MediaWiki\MediaWikiServices; use Wikimedia\Rdbms\ResultWrapper; +use Wikimedia\Rdbms\IDatabase; /** * Class representing a list of titles @@ -42,7 +43,6 @@ class LinkBatch { protected $caller; /** - * LinkBatch constructor. * @param LinkTarget[] $arr Initial items to be added to the batch */ public function __construct( $arr = [] ) { @@ -131,7 +131,7 @@ class LinkBatch { * Do the query and add the results to a given LinkCache object * Return an array mapping PDBK to ID * - * @param LinkCache $cache + * @param LinkCache &$cache * @return array Remaining IDs */ protected function executeInto( &$cache ) {