Skip to content

Commit

Permalink
[Serializer] Comply with Symfony standards
Browse files Browse the repository at this point in the history
  • Loading branch information
karser committed Dec 8, 2018
1 parent 8429361 commit f552109
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -390,8 +390,10 @@ protected function denormalizeParameter(\ReflectionClass $class, \ReflectionPara
throw new LogicException(sprintf('Cannot create an instance of %s from serialized data because the serializer inject in "%s" is not a denormalizer', $parameter->getClass(), static::class));
}
$parameterClass = $parameter->getClass()->getName();

return $this->serializer->denormalize($parameterData, $parameterClass, $format, $this->createChildContext($context, $parameterName));
}

return $parameterData;
} catch (\ReflectionException $e) {
throw new RuntimeException(sprintf('Could not determine the class of the parameter "%s".', $parameterName), 0, $e);
Expand Down

0 comments on commit f552109

Please sign in to comment.