From cf779ec293f316b0dca9b33abc2acca686340699 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Tue, 11 Jun 2024 14:25:00 +0200 Subject: [PATCH] Remove redundant lines in ReferenceExecutor Somehow this was added in #1548 but I fail to see why. Let's remove it. This might be the cause for the performance degradation reported in #1548. --- src/Executor/ReferenceExecutor.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Executor/ReferenceExecutor.php b/src/Executor/ReferenceExecutor.php index f86998c87..b607f5a6f 100644 --- a/src/Executor/ReferenceExecutor.php +++ b/src/Executor/ReferenceExecutor.php @@ -1350,9 +1350,6 @@ protected function executeFields(ObjectType $parentType, $rootValue, array $path $containsPromise = false; $results = []; foreach ($fields as $responseName => $fieldNodes) { - $fieldNodes = $fields[$responseName]; - assert($fieldNodes instanceof \ArrayObject, 'The keys of $fields populate $responseName'); - $fieldPath = $path; $fieldPath[] = $responseName;