From 51e67d49c7ab5bf78bc395d1e8d63a4e42c37503 Mon Sep 17 00:00:00 2001 From: Decebal Dobrica Date: Thu, 16 Mar 2017 10:21:26 +0000 Subject: [PATCH] php merge for associative array non-integer intexed --- src/Type/Definition/ResolveInfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Type/Definition/ResolveInfo.php b/src/Type/Definition/ResolveInfo.php index 75c0070..782168d 100644 --- a/src/Type/Definition/ResolveInfo.php +++ b/src/Type/Definition/ResolveInfo.php @@ -136,10 +136,10 @@ class ResolveInfo if (isset($this->fragments[$spreadName])) { /** @var FragmentDefinitionNode $fragment */ $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) { - $fields += $this->foldSelectionSet($selectionNode->selectionSet, $descend); + $fields = array_merge_recursive($this->foldSelectionSet($selectionNode->selectionSet, $descend), $fields); } }