// Don't convert NULL to a string here in order to determine later
// whether an empty value has been submitted or whether no value has
// been submitted at all. This is important for processing checkboxes
// and radio buttons with empty values.
if (false ===
$submittedData) { $submittedData = null;
} elseif (\
is_scalar($submittedData)) { $submittedData =
(string) $submittedData;
} elseif ($this->config->
getRequestHandler()->
isFileUpload($submittedData)) { if (!
$this->config->
getOption('allow_file_upload'
)) { $submittedData = null;
$this->transformationFailure =
new TransformationFailedException('Submitted data was expected to be text or number, file upload given.'
);
} } elseif (\
is_array($submittedData) && !
$this->config->
getCompound() && !
$this->config->
getOption('multiple', false
)) { $submittedData = null;
$this->transformationFailure =
new TransformationFailedException('Submitted data was expected to be text or number, array given.'
);
} $dispatcher =
$this->config->
getEventDispatcher();
$modelData = null;
$normData = null;
$viewData = null;