mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-21 20:36:05 +03:00
Add missing renaming in ReferenceExecutor
This commit is contained in:
parent
03c33c9dc2
commit
65a3a8d13e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user