Merge "Add phpdoc for some ApiQueryInfo properties"
[lhc/web/wiklou.git] / includes / htmlform / HTMLFormField.php
index 28bfb66..3ba2156 100644 (file)
@@ -49,7 +49,7 @@ abstract class HTMLFormField {
         * Defaults to false, which getOOUI will interpret as "use the HTML version"
         *
         * @param string $value
-        * @return OOUI\\Widget|false
+        * @return OOUI\Widget|false
         */
        function getInputOOUI( $value ) {
                return false;
@@ -576,7 +576,7 @@ abstract class HTMLFormField {
         *
         * @param string $value The value to set the input to.
         *
-        * @return OOUI\\FieldLayout|OOUI\\ActionFieldLayout
+        * @return OOUI\FieldLayout|OOUI\ActionFieldLayout
         */
        public function getOOUI( $value ) {
                $inputField = $this->getInputOOUI( $value );
@@ -587,7 +587,7 @@ abstract class HTMLFormField {
                        // It might look weird, but it'll work OK.
                        return $this->getFieldLayoutOOUI(
                                new OOUI\Widget( array( 'content' => new OOUI\HtmlSnippet( $this->getDiv( $value ) ) ) ),
-                               array( 'infusable' => false )
+                               array( 'infusable' => false, 'align' => 'top' )
                        );
                }
 
@@ -629,7 +629,7 @@ abstract class HTMLFormField {
 
        /**
         * Get a FieldLayout (or subclass thereof) to wrap this field in when using OOUI output.
-        * @return OOUI\\FieldLayout|OOUI\\ActionFieldLayout
+        * @return OOUI\FieldLayout|OOUI\ActionFieldLayout
         */
        protected function getFieldLayoutOOUI( $inputField, $config ) {
                if ( isset( $this->mClassWithButton ) ) {
@@ -1054,8 +1054,8 @@ abstract class HTMLFormField {
 
                foreach ( $oldoptions as $text => $data ) {
                        $options[] = array(
-                               'data' => $data,
-                               'label' => $text,
+                               'data' => (string)$data,
+                               'label' => (string)$text,
                        );
                }