use null rather then false and doc fix
authorjeroendedauw <jeroendedauw@gmail.com>
Thu, 6 Dec 2012 22:36:42 +0000 (23:36 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 15 Dec 2012 18:31:08 +0000 (18:31 +0000)
Change-Id: Ifb8798a66d32da36fc8134e2039ec880c0f1dc1a

includes/site/Sites.php

index edd3d64..135308c 100644 (file)
@@ -32,9 +32,9 @@ class Sites {
 
        /**
         * @since 1.21
-        * @var SiteList|false
+        * @var SiteList|null
         */
-       protected $sites = false;
+       protected $sites = null;
 
        /**
         * Constructor.
@@ -65,7 +65,7 @@ class Sites {
         *
         * @since 1.21
         *
-        * @param string|false $globalId
+        * @param string|boolean false $globalId
         *
         * @return Site
         */
@@ -95,7 +95,7 @@ class Sites {
         */
        public function getSites( $source = 'cache' ) {
                if ( $source === 'cache' ) {
-                       if ( $this->sites === false ) {
+                       if ( $this->sites === null ) {
                                $cache = wfGetMainCache();
                                $sites = $cache->get( wfMemcKey( 'SiteList' ) );