php merge for associative array non-integer intexed#98
php merge for associative array non-integer intexed#98vladar merged 6 commits intowebonyx:masterfrom
Conversation
|
Actually This is a test class for ResolveInfo which you can update: https://github.com/webonyx/graphql-php/blob/master/tests/Type/ResolveInfoTest.php |
|
@vladar I am not sure what you have in mind when stating |
|
@decebal, now I see what you mean. The issue occurs when two fragments request the same field with different sub-selection. Current solution would only include selection of first fragment visited, while we actually need to merge them all. Thanks for noticing and fixing! Please let me know when you are done with PR, I'll merge it. |
|
@vladar it's done now, unless there is something else I can relate to this, thanks |
+=is useful as an array merge just in case the array is numerically indexed, which is not the case here at all.Problems solved by this:
fragment selection would be merged as opposed to first fragment selection being ignored before.