Skip to content

Commit

Permalink
fixed removed type inferrence when phpdoc is used for array item
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko committed Jan 12, 2023
1 parent a89d21a commit 46a8fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Generator/TypeTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function transform(Type $type)

$openApiType = $varNode && $varNode->type
? $this->transform(PhpDocTypeHelper::toType($varNode->type))
: new UnknownType;
: $openApiType;

if ($varNode && $varNode->description) {
$openApiType->setDescription($varNode->description);
Expand Down

0 comments on commit 46a8fd6

Please sign in to comment.