/* Variables for dressing up as a parser */
public $mTitle = 'PreprocessDump';
public $mPPNodeCount = 0;
+ /** @var Preprocessor */
+ public $mPreprocessor;
public function getStripList() {
$parser = MediaWikiServices::getInstance()->getParser();
$name = Preprocessor_DOM::class;
}
- MediaWikiServices::getInstance()->getParser()->firstCallInit();
- $this->mPreprocessor = new $name( $this );
+ $parser = MediaWikiServices::getInstance()->getParser();
+ $parser->firstCallInit();
+ $this->mPreprocessor = new $name( $parser );
}
/**