Skip to content

Commit

Permalink
fixed union not printing description
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax authored Oct 29, 2020
1 parent 8ff1ee6 commit 5eccd26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Type/UnionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ final public function printSchema() : string
$typeNames[] = $type->printName();
}

return 'union ' . $this->getName() . ' = ' . \implode(' | ', $typeNames);
return $this->printDescription()
. 'union ' . $this->getName() . ' = ' . \implode(' | ', $typeNames);
}
}

0 comments on commit 5eccd26

Please sign in to comment.