Compare commits

..

No commits in common. "5e9ad29f3ceecba86e9763aed5080b10fe020c46" and "0a7b1cdc12bceff4e9f96360483d4f98234f72e7" have entirely different histories.

View File

@ -51,8 +51,6 @@ class FormContext implements FormContextInterface
}
}
$this->fillValues();
$this->files = $request->getUploadedFiles() ?: [];
}
@ -144,16 +142,4 @@ class FormContext implements FormContextInterface
{
$this->messages[] = $message;
}
protected function fillValues() : void
{
# Skipping overrides of this particular class vars as a security measure
$skipping = array_keys(array_change_key_case(get_class_vars(FormContext::class), CASE_LOWER));
foreach($this->values as $property => $value) {
if ( ! in_array(strtolower($property), $skipping) && property_exists($this, $property)) {
$this->$property = $value;
}
}
}
}
}