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,
|
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(
|
||||||
|
Loading…
Reference in New Issue
Block a user