diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index 40d4bf186a..a3b0de8ef2 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -177,6 +177,10 @@ class Form extends FieldGroup $taintedFiles = self::convertFileInformation(self::fixPhpFilesArray($taintedFiles)); } + if (null === $taintedValues) { + $taintedValues = array(); + } + $this->doBind(self::deepArrayUnion($taintedValues, $taintedFiles)); if ($this->getParent() === null) {