Document the fact that some ResourceLoaderContext methods may return null
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 13 Sep 2011 20:15:00 +0000 (20:15 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 13 Sep 2011 20:15:00 +0000 (20:15 +0000)
includes/resourceloader/ResourceLoaderContext.php

index 3d42a4d..b7312e0 100644 (file)
@@ -155,14 +155,14 @@ class ResourceLoaderContext {
        }
 
        /**
-        * @return string
+        * @return string|null
         */
        public function getSkin() {
                return $this->skin;
        }
 
        /**
-        * @return string
+        * @return string|null
         */
        public function getUser() {
                return $this->user;
@@ -176,14 +176,14 @@ class ResourceLoaderContext {
        }
 
        /**
-        * @return String
+        * @return String|null
         */
        public function getOnly() {
                return $this->only;
        }
 
        /**
-        * @return String
+        * @return String|null
         */
        public function getVersion() {
                return $this->version;