diff --git a/src/TextVisitor.php b/src/TextVisitor.php index 33f30c5..ec6fcf1 100644 --- a/src/TextVisitor.php +++ b/src/TextVisitor.php @@ -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