From 45cca37d601f6097b8de7189cbd635cd285abb67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Pel=C3=AD=C5=A1ek?= Date: Mon, 3 Apr 2023 13:21:59 +0200 Subject: [PATCH] Upgrade text visitor to graphpinator 1.4 --- src/TextVisitor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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