Skip to content

Commit

Permalink
Fixed merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperg committed Feb 21, 2013
1 parent 5727657 commit 8bcadcf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Generator.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 8bcadcf

Please sign in to comment.