mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 15:59:24 +03:00
Fixed "out of memory" error for edge cases of resolveType()
calls
This commit is contained in:
parent
154fdfee11
commit
6fb62b25b3
@ -985,7 +985,7 @@ class Executor
|
|||||||
if (!($runtimeType instanceof ObjectType)) {
|
if (!($runtimeType instanceof ObjectType)) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"Abstract type {$returnType} must resolve to an Object type at runtime " .
|
"Abstract type {$returnType} must resolve to an Object type at runtime " .
|
||||||
"for field {$info->parentType}.{$info->fieldName} with value \"" . print_r($result, true) . "\"," .
|
"for field {$info->parentType}.{$info->fieldName} with value: " . Utils::printSafe($result) . "," .
|
||||||
"received \"$runtimeType\".",
|
"received \"$runtimeType\".",
|
||||||
$fieldNodes
|
$fieldNodes
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user