Skip to content

Commit 580d7bb

Browse files
committed
fix
1 parent c938c5a commit 580d7bb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/BetterPhpDocParser/ValueObject/Type/BracketsAwareUnionTypeNode.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function __construct(
2525
*/
2626
public function __toString(): string
2727
{
28+
$this->types = array_unique($this->types, SORT_REGULAR);
2829
if (! $this->isWrappedInBrackets) {
2930
return implode('|', $this->types);
3031
}

0 commit comments

Comments
 (0)