*/
use MediaWiki\MediaWikiServices;
+use MediaWiki\Storage\RevisionRecord;
require_once __DIR__ . '/dumpIterator.php';
* @param Revision $rev
*/
public function processRevision( $rev ) {
- $content = $rev->getContent( Revision::RAW );
+ $content = $rev->getContent( RevisionRecord::RAW );
if ( $content->getModel() !== CONTENT_MODEL_WIKITEXT ) {
return;
}
+ /** @var WikitextContent $content */
+ '@phan-var WikitextContent $content';
try {
$this->mPreprocessor->preprocessToObj( strval( $content->getText() ), 0 );