From 8bcadcf7569cc8477e5c362048cca201c7e89982 Mon Sep 17 00:00:00 2001 From: Kasper Garnaes Date: Thu, 21 Feb 2013 11:33:50 +0100 Subject: [PATCH] Fixed merge error --- src/Generator.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index 7581a9a4..d5ad72e1 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -288,10 +288,9 @@ private function loadTypes() list($typename, $name) = explode(" ", substr($parts[$i], 0, strlen($parts[$i])-1) ); $name = $this->cleanNamespace($name); - if (array_key_exists($name, $arrayVars)) { - $typename .= '[]'; - } - $type->addMember($typename, $name); + if (array_key_exists($name, $arrayVars)) { + $typename .= '[]'; + } $nillable = false; foreach ($this->schema as $schema) {