Unverified Commit d52f618c authored by JonGold's avatar JonGold
Browse files

null-safe version of isMultiple check

parent f44c5078
......@@ -311,7 +311,8 @@
private function processMultipleValueParameters(AbstractAction $actionClass, array $actionMapping) : array {
$parameterSpecificationBag = $actionClass->getParameterSpecification();
foreach ($actionMapping as $mappedField => $mappedInput) {
if ($parameterSpecificationBag->getSpecificationByName($mappedField)->isMultiple()) {
$spec = $parameterSpecificationBag->getSpecificationByName($mappedField);
if ($spec !== NULL && $spec->isMultiple()) {
$actionMapping[$mappedField] = explode(',', $mappedInput);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment