Fix incompatible declaration of Form::setDefaults()
PHP with strict standards: Declaration of Icinga\Web\Form::setDefaults() should be compatible with that of Zend_Form::setDefaults() refs #5525
This commit is contained in:
parent
930e6e7d71
commit
12b4865559
|
@ -467,7 +467,7 @@ class Form extends Zend_Form
|
|||
*
|
||||
* @param array $defaults The values to populate the elements with
|
||||
*/
|
||||
public function setDefaults(array $defaults)
|
||||
public function setDefaults($defaults)
|
||||
{
|
||||
$this->create($defaults);
|
||||
return parent::setDefaults($defaults);
|
||||
|
|
Loading…
Reference in New Issue