From: Alangi Derick Date: Mon, 17 Dec 2018 15:51:19 +0000 (+0100) Subject: XmlSelect: Fix PHPDoc param comments for addOption() & formatOptions() X-Git-Tag: 1.34.0-rc.0~3192^2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=02292497a08db375be12b5e6e06b3f16e88a5122;p=lhc%2Fweb%2Fwiklou.git XmlSelect: Fix PHPDoc param comments for addOption() & formatOptions() Change-Id: I60f1bd78b3820510f9fbc497e1c703f9da7fd900 --- diff --git a/includes/XmlSelect.php b/includes/XmlSelect.php index 5d7406c64d..45002e82f6 100644 --- a/includes/XmlSelect.php +++ b/includes/XmlSelect.php @@ -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 ) {