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

Commit c7610c6

Browse files
committed
avoid recursion
1 parent 5c528d7 commit c7610c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Support/Definition/GraphQLType.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ public function getAttributes()
2828
{
2929
$attributes = array_merge(
3030
$this->attributes, [
31-
'fields' => $this->getFields(),
31+
'fields' => function () {
32+
return $this->fields();
33+
}
3234
]);
3335

34-
if(sizeof($this->interfaces())) {
36+
if (sizeof($this->interfaces())) {
3537
$attributes['interfaces'] = $this->interfaces();
3638
}
3739

0 commit comments

Comments
 (0)