We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98a9daf commit 98f7cccCopy full SHA for 98f7ccc
src/Type/Definition/UnionType.php
@@ -87,7 +87,9 @@ public function getTypes()
87
);
88
}
89
90
- $this->types = $types;
+ $this->types = array_map(function($type) {
91
+ return Type::resolveLazyType($type);
92
+ },$types);
93
94
95
return $this->types;
src/Type/Schema.php
@@ -424,7 +424,7 @@ private function getPossibleTypeMap()
424
425
} elseif ($type instanceof UnionType) {
426
foreach ($type->getTypes() as $innerType) {
427
- $this->possibleTypeMap[$type->name][$innerType->name] = Type::resolveLazyType($innerType);
+ $this->possibleTypeMap[$type->name][$innerType->name] = $innerType;
428
429
430
0 commit comments