From: Platonides Date: Sun, 23 Jan 2011 16:11:14 +0000 (+0000) Subject: Add types to prototypes. X-Git-Tag: 1.31.0-rc.0~32404 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=a39b8f131100e5e8c16f34b6d234416cc4769854;p=lhc%2Fweb%2Fwiklou.git Add types to prototypes. --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index f3a969d2d2..aa7204f5e9 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -453,7 +453,7 @@ class Parser { * Expand templates and variables in the text, producing valid, static wikitext. * Also removes comments. */ - function preprocess( $text, $title, $options, $revid = null ) { + function preprocess( $text, Title $title, ParserOptions $options, $revid = null ) { wfProfileIn( __METHOD__ ); $this->startExternalParse( $title, $options, self::OT_PREPROCESS, true ); if ( $revid !== null ) { @@ -473,7 +473,7 @@ class Parser { * , etc. are parsed as for template transclusion, * comments, templates, arguments, tags hooks and parser functions are untouched. */ - public function getPreloadText( $text, $title, $options ) { + public function getPreloadText( $text, Title $title, ParserOptions $options ) { # Parser (re)initialisation $this->startExternalParse( $title, $options, self::OT_PLAIN, true ); @@ -4288,7 +4288,7 @@ class Parser { * Set up some variables which are usually set up in parse() * so that an external function can call some class members with confidence */ - public function startExternalParse( &$title, $options, $outputType, $clearState = true ) { + public function startExternalParse( Title $title, ParserOptions $options, $outputType, $clearState = true ) { $this->setTitle( $title ); $this->mOptions = $options; $this->setOutputType( $outputType ); @@ -5182,7 +5182,7 @@ class Parser { /** * strip/replaceVariables/unstrip for preprocessor regression testing */ - function testSrvus( $text, $title, $options, $outputType = self::OT_HTML ) { + function testSrvus( $text, $title, ParserOptions $options, $outputType = self::OT_HTML ) { if ( !$title instanceof Title ) { $title = Title::newFromText( $title ); }