From 6fb62b25b35f7252e8b2c3baad7540cfa73ec8a5 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Mon, 29 May 2017 22:54:35 +0700 Subject: [PATCH] Fixed "out of memory" error for edge cases of `resolveType()` calls --- src/Executor/Executor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index 7ef5fa0..b17f909 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -985,7 +985,7 @@ class Executor if (!($runtimeType instanceof ObjectType)) { throw new Error( "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\".", $fieldNodes );