Skip to content

Commit f84f413

Browse files
committed
Add mixed type extraction to printer
1 parent 2680b55 commit f84f413

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Printer.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,13 @@ protected function printMap(iterable $stmts): array
9696
}
9797

9898
/** @var list<non-empty-string> */
99-
return \array_unique($result);
99+
$result = \array_unique($result);
100+
101+
if (\in_array('mixed', $result, true)) {
102+
return ['mixed'];
103+
}
104+
105+
return $result;
100106
}
101107

102108
/**

0 commit comments

Comments
 (0)