Skip to content

Commit 0db2b88

Browse files
authored
Merge branch refs/heads/2.1.x into 2.2.x
2 parents a4f3867 + ba4fe14 commit 0db2b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/UnionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public function describe(VerbosityLevel $level): string
329329
} elseif ($type instanceof IntersectionType) {
330330
$intersectionDescription = $type->describe($level);
331331
if (str_contains($intersectionDescription, '&')) {
332-
$typeNames[] = sprintf('(%s)', $type->describe($level));
332+
$typeNames[] = sprintf('(%s)', $intersectionDescription);
333333
} else {
334334
$typeNames[] = $intersectionDescription;
335335
}

0 commit comments

Comments
 (0)