Skip to content

Commit

Permalink
Upgrade text visitor to graphpinator 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax committed Apr 3, 2023
1 parent 4c99eb6 commit 45cca37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TextVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function visitDirective(\Graphpinator\Typesystem\Directive $directive) :
$schema .= ' repeatable';
}

return $schema . ' on ' . \implode(' | ', $directive->getLocations());
return $schema . ' on ' . \implode(' | ', \array_column($directive->getLocations(), 'value'));
}

public function visitField(\Graphpinator\Typesystem\Field\Field $field) : string
Expand Down

0 comments on commit 45cca37

Please sign in to comment.