mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-26 14:56:03 +03:00
php merge for associative array non-integer intexed
This commit is contained in:
parent
f77bd17eba
commit
51e67d49c7
@ -136,10 +136,10 @@ class ResolveInfo
|
|||||||
if (isset($this->fragments[$spreadName])) {
|
if (isset($this->fragments[$spreadName])) {
|
||||||
/** @var FragmentDefinitionNode $fragment */
|
/** @var FragmentDefinitionNode $fragment */
|
||||||
$fragment = $this->fragments[$spreadName];
|
$fragment = $this->fragments[$spreadName];
|
||||||
$fields += $this->foldSelectionSet($fragment->selectionSet, $descend);
|
$fields = array_merge_recursive($this->foldSelectionSet($fragment->selectionSet, $descend), $fields);
|
||||||
}
|
}
|
||||||
} else if ($selectionNode instanceof InlineFragmentNode) {
|
} else if ($selectionNode instanceof InlineFragmentNode) {
|
||||||
$fields += $this->foldSelectionSet($selectionNode->selectionSet, $descend);
|
$fields = array_merge_recursive($this->foldSelectionSet($selectionNode->selectionSet, $descend), $fields);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user