graphql-php/src/Validator
Daniel Tschinder 6e358eb26c Fix infinite loop on invalid queries in OverlappingFields
`OverlappingFieldsCanBeMerged` would infinite loop when passed something like

```graphql
fragment A on User {
  name
  ...A
}
```

It's not `OverlappingFieldsCanBeMerged`'s responsibility to detect that validation error, but we still would ideally avoid infinite looping.

This detects that case, and pretends that the infinite spread wasn't there for the purposes of this validation step.

Also, by memoizing and checking for self-references this removes duplicate reports.

ref: graphql/graphql-js#1111
2018-02-11 17:58:48 +01:00
..
Rules Fix infinite loop on invalid queries in OverlappingFields 2018-02-11 17:58:48 +01:00
DocumentValidator.php Update to match SDL changes 2018-02-11 13:27:26 +01:00
ValidationContext.php Validation: improving overlapping fields quality 2018-02-11 17:45:35 +01:00