$slotContents = $this->getSlotContents();
$this->slotDiffRenderers = array_map( function ( $contents ) {
- /** @var $content Content */
+ /** @var Content $content */
$content = $contents['new'] ?: $contents['old'];
return $content->getContentHandler()->getSlotDiffRenderer( $this->getContext() );
}, $slotContents );
// Cacheable?
$key = false;
- $cache = ObjectCache::getMainWANInstance();
+ $cache = MediaWikiServices::getInstance()->getMainWANObjectCache();
if ( $this->mOldid && $this->mNewid ) {
// Check if subclass is still using the old way
// for backwards-compatibility