From ecdf7e187210018ea89b5ba1643697dca3262893 Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Wed, 20 Nov 2013 08:45:12 +0100 Subject: [PATCH] Fixed an undefined variable Fixed commit c83009743031026c3ad055605071417d2e9e3f96 Fixed issue #22 --- .../ServiceBinding/RpcLiteralRequestMessageBinder.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralRequestMessageBinder.php b/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralRequestMessageBinder.php index 872adc0..f076795 100644 --- a/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralRequestMessageBinder.php +++ b/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralRequestMessageBinder.php @@ -55,6 +55,7 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface $type = $this->typeRepository->getType($phpType); if ($type instanceof ArrayOfType) { $isArray = true; + $array = array(); $arrayType = $type; $type = $this->typeRepository->getType($type->get('item')->getType()); @@ -65,8 +66,6 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface $phpType = $type->getPhpType(); if ($isArray) { - $array = array(); - if (isset($message->item)) { foreach ($message->item as $complexType) { $array[] = $this->checkComplexType($phpType, $complexType);