From 2540436a2c146d959cc21c529c1607827c5b60a5 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Fri, 22 Jun 2018 21:56:19 +0700 Subject: [PATCH] Fix wrong length being used in validator. (cherry picked from commit 8ba1460) --- src/Validator/Rules/OverlappingFieldsCanBeMerged.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validator/Rules/OverlappingFieldsCanBeMerged.php b/src/Validator/Rules/OverlappingFieldsCanBeMerged.php index 0867be6..7ab2838 100644 --- a/src/Validator/Rules/OverlappingFieldsCanBeMerged.php +++ b/src/Validator/Rules/OverlappingFieldsCanBeMerged.php @@ -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,