From bf2f88aa056f716606d3a636df10f46e8082e95c Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Tue, 16 Aug 2011 21:18:44 +0300 Subject: [PATCH] Added message exception if the "setter" is not specified to hydrate a complex type. --- ServiceBinding/RpcLiteralRequestMessageBinder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ServiceBinding/RpcLiteralRequestMessageBinder.php b/ServiceBinding/RpcLiteralRequestMessageBinder.php index 58ac675..cb4f5c6 100644 --- a/ServiceBinding/RpcLiteralRequestMessageBinder.php +++ b/ServiceBinding/RpcLiteralRequestMessageBinder.php @@ -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);