Check if a value is null in RpcLiteralRequestMessageBinder

This commit is contained in:
Francis Besset 2011-08-16 21:06:10 +02:00
parent 0368461b12
commit 9f7ff62449

View File

@ -80,6 +80,10 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface
foreach ($definitionComplexTypes[$phpType] as $type) {
$value = $this->processType($type->getValue(), $message->{$type->getName()}, $definitionComplexTypes);
if (null === $value && $type->isNillable()) {
continue;
}
if ($type instanceof PropertyComplexType) {
$instanceType->{$type->getOriginalName()} = $value;
} elseif ($type instanceof MethodComplexType) {