Type hint array for HTMLFormFieldCloner::getInputHTMLForKey()
authorFlorian Schmidt <florian.schmidt.stargatewissen@gmail.com>
Mon, 15 Aug 2016 14:38:33 +0000 (16:38 +0200)
committerFlorian Schmidt <florian.schmidt.stargatewissen@gmail.com>
Mon, 15 Aug 2016 14:41:20 +0000 (16:41 +0200)
I was a bit fast with merging I18edfcb62f7b21f2c1990c73944ee6a956fd4901,
because I think, type hinting the type of the parameter would make sense,
too.

Bug: T142912
Change-Id: Id397847c6c078047f3daa84db68ccf3e629ca531

includes/htmlform/fields/HTMLFormFieldCloner.php

index f39f54b..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();