mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 06:16:05 +03:00
Fix wrong length being used in validator.
(cherry picked from commit 8ba1460
)
This commit is contained in:
parent
d53f7f041e
commit
2540436a2c
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user