From: Florian Schmidt Date: Mon, 15 Aug 2016 14:38:33 +0000 (+0200) Subject: Type hint array for HTMLFormFieldCloner::getInputHTMLForKey() X-Git-Tag: 1.31.0-rc.0~6001^2 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=ac4f758deeaa9cec2a48e14fec7eded6de669c62;p=lhc%2Fweb%2Fwiklou.git 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 --- 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();