Document callback as callable type and the results part as
IResultWrapper to match the implementation, which is passing return of
Database::query to this function
Change-Id: I63ee8d4907590a21ef34d0b761b8fabfe0ff2569
wfEntryPointCheck( 'text' );
use MediaWiki\Shell\Shell;
wfEntryPointCheck( 'text' );
use MediaWiki\Shell\Shell;
+use Wikimedia\Rdbms\IResultWrapper;
/**
* @defgroup MaintenanceArchive Maintenance archives
/**
* @defgroup MaintenanceArchive Maintenance archives
/**
* Perform a search index update with locking
* @param int $maxLockTime The maximum time to keep the search index locked.
/**
* 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 IMaintainableDatabase $dbw
- * @param array $results
+ * @param array|IResultWrapper $results
*/
public function updateSearchIndex( $maxLockTime, $callback, $dbw, $results ) {
$lockTime = time();
*/
public function updateSearchIndex( $maxLockTime, $callback, $dbw, $results ) {
$lockTime = time();