Skip to content

Commit

Permalink
Merge pull request #10 from mcg-web/fix_interfaces_and_types
Browse files Browse the repository at this point in the history
Fix types and interfaces config entries
  • Loading branch information
mcg-web authored Nov 28, 2016
2 parents 24f9126 + 042a767 commit d91851e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Generator/AbstractTypeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ protected function resolveTypeCode($alias)
protected function resolveTypesCode(array $values, $key)
{
if (isset($values[$key])) {
$types = $this->types2String($values[$key]);
$types = sprintf(static::$closureTemplate, '', $this->types2String($values[$key]));
} else {
$types = '[]';
}

return $types;
return $types;
}

protected function types2String(array $types)
Expand Down
2 changes: 1 addition & 1 deletion src/Generator/TypeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function generateType(array $value)
$type = 'null';

if (isset($value['type'])) {
$type = sprintf('%s', $this->typeAlias2String($value['type']));
$type = $this->typeAlias2String($value['type']);
}

return $type;
Expand Down

0 comments on commit d91851e

Please sign in to comment.