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
1 changed files with 4 additions and 0 deletions

View File

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