From 65a3a8d13efa75a9cb732abfc2d970a22f4a50ef Mon Sep 17 00:00:00 2001 From: spawnia Date: Sun, 23 Jun 2019 18:36:07 +0200 Subject: [PATCH] Add missing renaming in ReferenceExecutor --- src/Executor/ReferenceExecutor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Executor/ReferenceExecutor.php b/src/Executor/ReferenceExecutor.php index 6c4a00c..82824c4 100644 --- a/src/Executor/ReferenceExecutor.php +++ b/src/Executor/ReferenceExecutor.php @@ -1235,20 +1235,20 @@ class ReferenceExecutor implements ExecutorImplementation * Implements the "Evaluating selection sets" section of the spec * for "read" mode. * - * @param mixed|null $source + * @param mixed $rootValue * @param mixed[] $path * @param ArrayObject $fields * * @return Promise|stdClass|mixed[] */ - private function executeFields(ObjectType $parentType, $source, $path, $fields) + private function executeFields(ObjectType $parentType, $rootValue, $path, $fields) { $containsPromise = false; $finalResults = []; foreach ($fields as $responseName => $fieldNodes) { $fieldPath = $path; $fieldPath[] = $responseName; - $result = $this->resolveField($parentType, $source, $fieldNodes, $fieldPath); + $result = $this->resolveField($parentType, $rootValue, $fieldNodes, $fieldPath); if ($result === self::$UNDEFINED) { continue; }