Skip to content

Commit d91851e

Browse files
authored
Merge pull request #10 from mcg-web/fix_interfaces_and_types
Fix types and interfaces config entries
2 parents 24f9126 + 042a767 commit d91851e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Generator/AbstractTypeGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,12 @@ protected function resolveTypeCode($alias)
251251
protected function resolveTypesCode(array $values, $key)
252252
{
253253
if (isset($values[$key])) {
254-
$types = $this->types2String($values[$key]);
254+
$types = sprintf(static::$closureTemplate, '', $this->types2String($values[$key]));
255255
} else {
256256
$types = '[]';
257257
}
258258

259-
return $types;
259+
return $types;
260260
}
261261

262262
protected function types2String(array $types)

src/Generator/TypeGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function generateType(array $value)
6363
$type = 'null';
6464

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

6969
return $type;

0 commit comments

Comments
 (0)