[SoapBundle] Simplified conditional statement
This commit is contained in:
parent
60e3714602
commit
1b4e262c60
|
@ -112,9 +112,8 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface
|
||||||
$value = $this->processType($type->getType(), $value);
|
$value = $this->processType($type->getType(), $value);
|
||||||
|
|
||||||
$messageBinder->writeProperty($property, $value);
|
$messageBinder->writeProperty($property, $value);
|
||||||
}
|
} elseif (!$type->isNillable()) {
|
||||||
|
// @TODO use xmlType instead of phpType
|
||||||
if (!$type->isNillable() && null === $value) {
|
|
||||||
throw new \SoapFault('SOAP_ERROR_COMPLEX_TYPE', sprintf('"%s:%s" cannot be null.', ucfirst($phpType), $type->getName()));
|
throw new \SoapFault('SOAP_ERROR_COMPLEX_TYPE', sprintf('"%s:%s" cannot be null.', ucfirst($phpType), $type->getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue