/**
* Takes named templates by the module and returns an array mapping.
*
- * @return array of templates mapping template alias to content
+ * @return string[] Array of templates mapping template alias to content
*/
public function getTemplates() {
// Stub, override expected.
'md_skin' => $vary,
'md_deps' => $deps,
],
- [ 'md_module', 'md_skin' ],
+ [ [ 'md_module', 'md_skin' ] ],
[
'md_deps' => $deps,
- ]
+ ],
+ __METHOD__
);
if ( $dbw->trxLevel() ) {
$cache = MediaWikiServices::getInstance()->getMainWANObjectCache();
return $cache->getWithSetCallback(
$cache->makeGlobalKey(
- 'resourceloader',
- 'jsparse',
+ 'resourceloader-jsparse',
self::$parseCacheVersion,
md5( $contents ),
$fileName