mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-21 20:36:05 +03:00
Add one more
This commit is contained in:
parent
6e91e2181c
commit
8381f67bd8
@ -1324,9 +1324,9 @@ class ReferenceExecutor implements ExecutorImplementation
|
||||
ResolveInfo $info,
|
||||
&$result
|
||||
) {
|
||||
$runtimeType = is_string($runtimeTypeOrName) ?
|
||||
$this->exeContext->schema->getType($runtimeTypeOrName) :
|
||||
$runtimeTypeOrName;
|
||||
$runtimeType = is_string($runtimeTypeOrName)
|
||||
? $this->exeContext->schema->getType($runtimeTypeOrName)
|
||||
: $runtimeTypeOrName;
|
||||
if (! $runtimeType instanceof ObjectType) {
|
||||
throw new InvariantViolation(
|
||||
sprintf(
|
||||
|
Loading…
Reference in New Issue
Block a user