From 8ba146071dfbc59adb918137f955e8bf8dbc3676 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Fri, 22 Jun 2018 16:56:19 +0200 Subject: [PATCH] Fix wrong length being used in validator. --- 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,