From 0262f59a3fab1cd83fb7009ae2ca4bcc818cb200 Mon Sep 17 00:00:00 2001 From: Torsten Blindert Date: Mon, 1 Oct 2018 20:28:05 +0200 Subject: [PATCH] BUGFIX: Directives args have to be FieldArguments, not FieldDefinitions --- src/Type/Definition/Directive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Type/Definition/Directive.php b/src/Type/Definition/Directive.php index f837db7..b572948 100644 --- a/src/Type/Definition/Directive.php +++ b/src/Type/Definition/Directive.php @@ -50,7 +50,7 @@ class Directive $args = []; foreach ($config['args'] as $name => $arg) { if (is_array($arg)) { - $args[] = FieldDefinition::create($arg + ['name' => $name]); + $args[] = new FieldArgument($arg + ['name' => $name]); } else { $args[] = $arg; }