Skip to content

Commit 6fb62b2

Browse files
committed
Fixed "out of memory" error for edge cases of resolveType() calls
1 parent 154fdfe commit 6fb62b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Executor/Executor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ private function completeAbstractValue(AbstractType $returnType, $fieldNodes, Re
985985
if (!($runtimeType instanceof ObjectType)) {
986986
throw new Error(
987987
"Abstract type {$returnType} must resolve to an Object type at runtime " .
988-
"for field {$info->parentType}.{$info->fieldName} with value \"" . print_r($result, true) . "\"," .
988+
"for field {$info->parentType}.{$info->fieldName} with value: " . Utils::printSafe($result) . "," .
989989
"received \"$runtimeType\".",
990990
$fieldNodes
991991
);

0 commit comments

Comments
 (0)