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:
Johannes Meyer 2014-09-08 09:42:02 +02:00
parent 930e6e7d71
commit 12b4865559
1 changed files with 1 additions and 1 deletions

View File

@ -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);