Merge pull request #292 from danez/patch-2

Fix wrong length being used in validator.
This commit is contained in:
Vladimir Razuvaev 2018-06-23 11:18:07 +07:00 committed by GitHub
commit 6195029215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,7 +426,7 @@ class OverlappingFieldsCanBeMerged extends AbstractValidationRule
$fragmentNames1Length = count($fragmentNames1);
if ($fragmentNames1Length !== 0) {
$comparedFragments = [];
for ($i = 0; $i < $fragmentNames2Length; $i++) {
for ($i = 0; $i < $fragmentNames1Length; $i++) {
$this->collectConflictsBetweenFieldsAndFragment(
$context,
$conflicts,