Added message exception if the "setter" is not specified to hydrate a complex type.
This commit is contained in:
parent
d38e0c03b7
commit
bf2f88aa05
@ -84,7 +84,7 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface
|
||||
$instanceType->{$type->getOriginalName()} = $value;
|
||||
} elseif ($type instanceof MethodComplexType) {
|
||||
if (!$type->getSetter()) {
|
||||
throw new \LogicException();
|
||||
throw new \LogicException(sprintf('"setter" option must be specified to hydrate "%s::%s()"', $phpType, $type->getOriginalName()));
|
||||
}
|
||||
|
||||
$instanceType->{$type->getSetter()}($value);
|
||||
|
Loading…
Reference in New Issue
Block a user