Check if a value is null in RpcLiteralRequestMessageBinder

Этот коммит содержится в:
Francis Besset
2011-08-16 21:06:10 +02:00
родитель 0368461b12
Коммит 9f7ff62449

Просмотреть файл

@ -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) {