static E_STRICT warnings
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 10 Jul 2006 15:08:51 +0000 (15:08 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 10 Jul 2006 15:08:51 +0000 (15:08 +0000)
includes/LoadBalancer.php
includes/Parser.php
includes/Sanitizer.php
includes/Title.php

index f985a7b..3141691 100644 (file)
@@ -50,7 +50,7 @@ class LoadBalancer {
                $this->mAllowLag = false;
        }
 
-       function newFromParams( $servers, $failFunction = false, $waitTimeout = 10 )
+       static function newFromParams( $servers, $failFunction = false, $waitTimeout = 10 )
        {
                $lb = new LoadBalancer;
                $lb->initialise( $servers, $failFunction, $waitTimeout );
index 31976ba..cfe6f1c 100644 (file)
@@ -4556,7 +4556,7 @@ class ParserOptions
         * Get parser options
         * @static
         */
-       function newFromUser( &$user ) {
+       static function newFromUser( &$user ) {
                return new ParserOptions( $user );
        }
 
index 234531e..7caefc6 100644 (file)
@@ -920,8 +920,9 @@ class Sanitizer {
         * @param string $text
         * @return string
         * @public
+        * @static
         */
-       function decodeCharReferences( $text ) {
+       public static function decodeCharReferences( $text ) {
                return preg_replace_callback(
                        MW_CHAR_REFS_REGEX,
                        array( 'Sanitizer', 'decodeCharReferencesCallback' ),
@@ -932,7 +933,7 @@ class Sanitizer {
         * @param string $matches
         * @return string
         */
-       function decodeCharReferencesCallback( $matches ) {
+       static function decodeCharReferencesCallback( $matches ) {
                if( $matches[1] != '' ) {
                        return Sanitizer::decodeEntity( $matches[1] );
                } elseif( $matches[2] != '' ) {
index bc8f69a..1a9df34 100644 (file)
@@ -108,7 +108,7 @@ class Title {
         * @static
         * @access public
         */
-       function newFromText( $text, $defaultNamespace = NS_MAIN ) {
+       public static function newFromText( $text, $defaultNamespace = NS_MAIN ) {
                $fname = 'Title::newFromText';
 
                if( is_object( $text ) ) {
@@ -233,7 +233,7 @@ class Title {
         * @static
         * @access public
         */
-       function &makeTitle( $ns, $title ) {
+       public static function &makeTitle( $ns, $title ) {
                $t =& new Title();
                $t->mInterwiki = '';
                $t->mFragment = '';