diff --git a/lib/form/sfFormField.class.php b/lib/form/sfFormField.class.php index 0d04cd478..dccf2e2c3 100644 --- a/lib/form/sfFormField.class.php +++ b/lib/form/sfFormField.class.php @@ -35,13 +35,13 @@ class sfFormField /** * Constructor. * - * @param sfWidgetForm $widget A sfWidget instance - * @param sfFormField $parent The sfFormField parent instance (null for the root widget) - * @param string $name The field name - * @param string $value The field value - * @param sfValidatorError $error A sfValidatorError instance + * @param sfWidgetForm $widget A sfWidget instance + * @param sfFormField|null $parent The sfFormField parent instance (null for the root widget) + * @param string $name The field name + * @param mixed $value The field value + * @param sfValidatorError|null $error A sfValidatorError instance */ - public function __construct(sfWidgetForm $widget, ?sfFormField $parent = null, $name, $value, ?sfValidatorError $error = null) + public function __construct(sfWidgetForm $widget, ?sfFormField $parent = null, $name = '', $value = null, ?sfValidatorError $error = null) { $this->widget = $widget; $this->parent = $parent; diff --git a/lib/form/sfFormFieldSchema.class.php b/lib/form/sfFormFieldSchema.class.php index e0a93fb48..2e4f5544b 100644 --- a/lib/form/sfFormFieldSchema.class.php +++ b/lib/form/sfFormFieldSchema.class.php @@ -22,13 +22,13 @@ class sfFormFieldSchema extends sfFormField implements ArrayAccess, Iterator, Co /** * Constructor. * - * @param sfWidgetFormSchema $widget A sfWidget instance - * @param sfFormField $parent The sfFormField parent instance (null for the root widget) - * @param string $name The field name - * @param string $value The field value - * @param sfValidatorError $error A sfValidatorError instance + * @param sfWidgetFormSchema $widget A sfWidget instance + * @param sfFormField|null $parent The sfFormField parent instance (null for the root widget) + * @param string $name The field name + * @param mixed $value The field value + * @param sfValidatorError|null $error A sfValidatorError instance */ - public function __construct(sfWidgetFormSchema $widget, ?sfFormField $parent = null, $name, $value, ?sfValidatorError $error = null) + public function __construct(sfWidgetFormSchema $widget, ?sfFormField $parent = null, $name = '', $value = null, ?sfValidatorError $error = null) { parent::__construct($widget, $parent, $name, $value, $error);