Skip to content

Commit

Permalink
Add mixed type extraction to printer
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Apr 12, 2024
1 parent 2680b55 commit f84f413
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ protected function printMap(iterable $stmts): array
}

/** @var list<non-empty-string> */
return \array_unique($result);
$result = \array_unique($result);

if (\in_array('mixed', $result, true)) {
return ['mixed'];
}

return $result;
}

/**
Expand Down

0 comments on commit f84f413

Please sign in to comment.