Fixed an undefined variable

Fixed commit c830097430
Fixed issue #22
This commit is contained in:
Francis Besset 2013-11-20 08:45:12 +01:00
parent dcfca04db4
commit ecdf7e1872
1 changed files with 1 additions and 2 deletions

View File

@ -55,6 +55,7 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface
$type = $this->typeRepository->getType($phpType); $type = $this->typeRepository->getType($phpType);
if ($type instanceof ArrayOfType) { if ($type instanceof ArrayOfType) {
$isArray = true; $isArray = true;
$array = array();
$arrayType = $type; $arrayType = $type;
$type = $this->typeRepository->getType($type->get('item')->getType()); $type = $this->typeRepository->getType($type->get('item')->getType());
@ -65,8 +66,6 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface
$phpType = $type->getPhpType(); $phpType = $type->getPhpType();
if ($isArray) { if ($isArray) {
$array = array();
if (isset($message->item)) { if (isset($message->item)) {
foreach ($message->item as $complexType) { foreach ($message->item as $complexType) {
$array[] = $this->checkComplexType($phpType, $complexType); $array[] = $this->checkComplexType($phpType, $complexType);