Merge "Move up devunt's name to Developers"
[lhc/web/wiklou.git] / includes / htmlform / fields / HTMLFormFieldCloner.php
index ec1bd84..5d8f491 100644 (file)
@@ -257,7 +257,7 @@ class HTMLFormFieldCloner extends HTMLFormField {
         * @param array $values
         * @return string
         */
-       protected function getInputHTMLForKey( $key, $values ) {
+       protected function getInputHTMLForKey( $key, array $values ) {
                $displayFormat = isset( $this->mParams['format'] )
                        ? $this->mParams['format']
                        : $this->mParent->getDisplayFormat();
@@ -354,7 +354,7 @@ class HTMLFormFieldCloner extends HTMLFormField {
                        );
                }
 
-               $template = $this->getInputHTMLForKey( $this->uniqueId, null );
+               $template = $this->getInputHTMLForKey( $this->uniqueId, [] );
                $html = Html::rawElement( 'ul', [
                        'id' => "mw-htmlform-cloner-list-{$this->mID}",
                        'class' => 'mw-htmlform-cloner-ul',