Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Fix issue with strait-forward types used in libraries (merged from eL…
Browse files Browse the repository at this point in the history
…ama's fork) (#147)
  • Loading branch information
martin-georgiev committed Feb 2, 2019
1 parent 60d9ee7 commit b22ed44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Parser.php
Expand Up @@ -494,7 +494,12 @@ private function addNamespacePrefix($nameSpace, array $definition)
'|',
\array_map(
static function ($v) use ($nameSpace) {
return $nameSpace . '.' . \trim($v);
$v = \trim($v);
if (\in_array($v, ApiDefinition::getStraightForwardTypes(), true)) {
return $v;
}

return $nameSpace . '.' . $v;
},
\explode('|', $item)
)
Expand Down

0 comments on commit b22ed44

Please sign in to comment.