Fix wrong length being used in validator.

This commit is contained in:
Daniel Tschinder 2018-06-22 16:56:19 +02:00 committed by GitHub
parent e31947a452
commit 8ba146071d
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); $fragmentNames1Length = count($fragmentNames1);
if ($fragmentNames1Length !== 0) { if ($fragmentNames1Length !== 0) {
$comparedFragments = []; $comparedFragments = [];
for ($i = 0; $i < $fragmentNames2Length; $i++) { for ($i = 0; $i < $fragmentNames1Length; $i++) {
$this->collectConflictsBetweenFieldsAndFragment( $this->collectConflictsBetweenFieldsAndFragment(
$context, $context,
$conflicts, $conflicts,