Add one more

This commit is contained in:
spawnia 2019-06-23 18:34:19 +02:00
parent 6e91e2181c
commit 8381f67bd8

View File

@ -1324,9 +1324,9 @@ class ReferenceExecutor implements ExecutorImplementation
ResolveInfo $info, ResolveInfo $info,
&$result &$result
) { ) {
$runtimeType = is_string($runtimeTypeOrName) ? $runtimeType = is_string($runtimeTypeOrName)
$this->exeContext->schema->getType($runtimeTypeOrName) : ? $this->exeContext->schema->getType($runtimeTypeOrName)
$runtimeTypeOrName; : $runtimeTypeOrName;
if (! $runtimeType instanceof ObjectType) { if (! $runtimeType instanceof ObjectType) {
throw new InvariantViolation( throw new InvariantViolation(
sprintf( sprintf(