We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 453d041 commit 67d47f7Copy full SHA for 67d47f7
src/Codegen/Codegen.php
@@ -331,6 +331,9 @@ public function isArrayKeyType(): bool {
331
}
332
333
public function getTypeInfo(): Typing\Type {
334
+ // If we're referencing a different schema, always generate an alias.
335
+ // Otherwise, simply delegate to the builder, which may or may not
336
+ // build an alias itself (e.g., in the case of ObjectBuilder).
337
if ($this->builder->isUniqueRef()) {
338
return Typing\TypeSystem::alias($this->builder->getType());
339
0 commit comments