Skip to content

Commit 25f818e

Browse files
authored
Merge pull request #230 from spirit-q2/remove-php74-notice
Remove notice appeared on php 7.4
2 parents 19aee49 + ff4f9ca commit 25f818e

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)