Skip to content

Commit ff4f9ca

Browse files
author
Sergey Matvienko
committed
Remove PHP Notice: Trying to access array offset on value of type null in sfForm.class.php on line 947
1 parent 80ff0d2 commit ff4f9ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/form/sfForm.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ class sfForm implements ArrayAccess, Iterator, Countable
6363
*/
6464
public function __construct($defaults = array(), $options = array(), $CSRFSecret = null)
6565
{
66-
$this->setDefaults($defaults);
6766
$this->options = $options;
6867
$this->localCSRFSecret = $CSRFSecret;
6968

7069
$this->validatorSchema = new sfValidatorSchema();
7170
$this->widgetSchema = new sfWidgetFormSchema();
7271
$this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
7372

73+
$this->setDefaults($defaults);
7474
$this->setup();
7575
$this->configure();
7676

0 commit comments

Comments
 (0)