From edce5989d41c27862667a9346eb1e4f060aa2c19 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 9 Aug 2008 13:31:15 +0000 Subject: [PATCH] For compatibility with PHP 5.3.0alpha1: specify class name instead of passing by ref the title object: was throwing the following error: Warning: Parameter 2 to Parser::parse() expected to be a reference, value given in ./includes/StubObject.php on line 58 followed by: Fatal error: Call to a member function getLanguageLinks() on a non-object in ./includes/OutputPage.php on line 463 --- includes/parser/Parser.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index b142924483..75dc915a79 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -279,15 +279,15 @@ class Parser * Convert wikitext to HTML * Do not call this function recursively. * - * @param string $text Text we want to parse - * @param Title &$title A title object - * @param array $options - * @param boolean $linestart - * @param boolean $clearState - * @param int $revid number to pass in {{REVISIONID}} + * @param $text String: text we want to parse + * @param $title A title object + * @param $options ParserOptions + * @param $linestart boolean + * @param $clearState boolean + * @param $revid Int: number to pass in {{REVISIONID}} * @return ParserOutput a ParserOutput */ - public function parse( $text, &$title, $options, $linestart = true, $clearState = true, $revid = null ) { + public function parse( $text, Title $title, ParserOptions $options, $linestart = true, $clearState = true, $revid = null ) { /** * First pass--just handle sections, pass the rest off * to internalParse() which does all the real work. -- 2.20.1