From ac4f758deeaa9cec2a48e14fec7eded6de669c62 Mon Sep 17 00:00:00 2001 From: Florian Schmidt Date: Mon, 15 Aug 2016 16:38:33 +0200 Subject: [PATCH] Type hint array for HTMLFormFieldCloner::getInputHTMLForKey() 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/htmlform/fields/HTMLFormFieldCloner.php b/includes/htmlform/fields/HTMLFormFieldCloner.php index f39f54be1a..5d8f491881 100644 --- a/includes/htmlform/fields/HTMLFormFieldCloner.php +++ b/includes/htmlform/fields/HTMLFormFieldCloner.php @@ -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(); -- 2.20.1