For compatibility with PHP 5.3.0alpha1: specify class name instead of passing by...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 9 Aug 2008 13:31:15 +0000 (13:31 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 9 Aug 2008 13:31:15 +0000 (13:31 +0000)
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

index b142924..75dc915 100644 (file)
@@ -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 <nowiki> sections, pass the rest off
                 * to internalParse() which does all the real work.