XmlSelect: Fix PHPDoc param comments for addOption() & formatOptions()
authorAlangi Derick <alangiderick@gmail.com>
Mon, 17 Dec 2018 15:51:19 +0000 (16:51 +0100)
committerKrinkle <krinklemail@gmail.com>
Sat, 22 Dec 2018 00:10:43 +0000 (00:10 +0000)
Change-Id: I60f1bd78b3820510f9fbc497e1c703f9da7fd900

includes/XmlSelect.php

index 5d7406c..45002e8 100644 (file)
@@ -75,7 +75,7 @@ class XmlSelect {
 
        /**
         * @param string $label
-        * @param string $value If not given, assumed equal to $label
+        * @param string|false $value If not given, assumed equal to $label
         */
        public function addOption( $label, $value = false ) {
                $value = $value !== false ? $value : $label;
@@ -99,7 +99,7 @@ class XmlSelect {
         * label => ( label => value, label => value )
         *
         * @param array $options
-        * @param string|array $default
+        * @param string|array|false $default
         * @return string
         */
        static function formatOptions( $options, $default = false ) {