LanguageConverter: Fix @return description
authorFomafix <fomafix@googlemail.com>
Wed, 20 Jun 2018 16:32:34 +0000 (18:32 +0200)
committerFomafix <fomafix@googlemail.com>
Wed, 20 Jun 2018 16:36:49 +0000 (18:36 +0200)
validateVariant returns null, not false.

Change-Id: I5241205da9f4d6266f09b361df856e50ddd96a7d

languages/LanguageConverter.php

index d11838a..ce35717 100644 (file)
@@ -224,7 +224,7 @@ class LanguageConverter {
        /**
         * Get the variant specified in the URL
         *
-        * @return mixed Variant if one found, false otherwise.
+        * @return mixed Variant if one found, null otherwise
         */
        public function getURLVariant() {
                global $wgRequest;
@@ -247,7 +247,7 @@ class LanguageConverter {
        /**
         * Determine if the user has a variant set.
         *
-        * @return mixed Variant if one found, false otherwise.
+        * @return mixed Variant if one found, null otherwise
         */
        protected function getUserVariant() {
                global $wgUser, $wgContLang;
@@ -284,7 +284,7 @@ class LanguageConverter {
        /**
         * Determine the language variant from the Accept-Language header.
         *
-        * @return mixed Variant if one found, false otherwise.
+        * @return mixed Variant if one found, null otherwise
         */
        protected function getHeaderVariant() {
                global $wgRequest;