X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLFormFieldCloner.php;h=5d8f4918816cd84f48e1618ef392bc8f312ec06a;hb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9;hp=ec1bd8427d9b41a8bfe3112bdf8eaa94831870f4;hpb=3ef9d19368ef1e877d009ddc273c36b99196b1e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLFormFieldCloner.php b/includes/htmlform/fields/HTMLFormFieldCloner.php index ec1bd8427d..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(); @@ -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',