* @return MediaWikiServices
* @throws MWException
*/
- protected function overrideMwServices( Config $configOverrides = null, array $services = [] ) {
+ protected static function overrideMwServices(
+ Config $configOverrides = null, array $services = []
+ ) {
if ( !$configOverrides ) {
$configOverrides = new HashConfig();
}
$user
);
// an edit always attempt to purge backlink links such as history
- // pages. That is unneccessary.
+ // pages. That is unnecessary.
JobQueueGroup::singleton()->get( 'htmlCacheUpdate' )->delete();
// WikiPages::doEditUpdates randomly adds RC purges
JobQueueGroup::singleton()->get( 'recentChangesUpdate' )->delete();
}
$db->insert(
'interwiki',
- array_map( 'get_object_vars', iterator_to_array( $this->interwikiTable ) ),
+ array_values( array_map( 'get_object_vars', iterator_to_array( $this->interwikiTable ) ) ),
__METHOD__
);
}