Check if a value is null in RpcLiteralRequestMessageBinder
This commit is contained in:
parent
0368461b12
commit
9f7ff62449
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue