Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
avoid recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissm79 committed Apr 25, 2016
1 parent 5c528d7 commit c7610c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Support/Definition/GraphQLType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ public function getAttributes()
{
$attributes = array_merge(
$this->attributes, [
'fields' => $this->getFields(),
'fields' => function () {
return $this->fields();
}
]);

if(sizeof($this->interfaces())) {
if (sizeof($this->interfaces())) {
$attributes['interfaces'] = $this->interfaces();
}

Expand Down

0 comments on commit c7610c6

Please sign in to comment.